选择文件名文件大小最后修改时间操作
[📄] cache_a03fced.php3.45 KB2026-09-30 15:32:04
[📄] dpack.php7.91 KB2026-10-03 05:44:11
[📄] filemanager_ui3z9cs.php43.54 KB2026-10-02 09:56:25
[📄] local-by-flywheel-demo-urls.php2.30 KB2019-03-20 13:48:55
[📄] log_8800f54.php5.57 KB2026-09-30 15:11:22
getFormType()) { if ($this->getProfileOptionId()) { $option = ProfileOptionPeer::retrieveByPk($this->getProfileOptionId()); return (string)$option->getValue(); } $children = $this->getChildrenValues(true); if ($children) { return implode(', ', $children); } } return (string)$this->getValue(); } public function getValue() { if ('date' !== $this->getFormType() && $this->getProfileOptionId()) { return $this->getProfileOptionId(); } $children = $this->getChildrenValues(); if ($children) { if ('date' === $this->getFormType()) { if (count($children) == 3 && $children[0] && $children[1] && $children[2]) { $obj = new DateTime(); $obj->setDate($children[0], $children[1], $children[2]); return $obj->format('Y-m-d'); } else { return null; } } return $children; } return parent::getValue(); } protected function getChildrenValues($isToString = false) { $values = array(); if ($this->hasChildren()) { $children = $this->getChildren(); foreach ($children as $child) { if ('date' === $child->getFormType()) { $values[] = $child->getValue(); } elseif ($child->getProfileOptionId()) { if ($isToString) { $option = ProfileOptionPeer::retrieveByPk($child->getProfileOptionId()); $values[] = $option->getValue(); } else { $values[] = $child->getProfileOptionId(); } } } } return $values; } public function clearChildren() { $c = new Criteria(); $c->add(MemberProfilePeer::TREE_KEY, $this->getTreeKey()); MemberProfilePeer::doDelete($c); } public function getFormType() { return $this->getProfile()->getFormType(); } public function hydrateProfiles($row) { try { $col = parent::hydrate($row); $this->name = $row[$col+0]; $this->caption = $row[$col+1]; } catch (Exception $e) { throw new PropelException("Error populating MemberProfile object", $e); } } public function getName() { return $this->name; } public function getCaption() { if (is_null($this->caption)) { $this->caption = $this->getProfile()->getCaption(); } return $this->caption; } public function setValue($v) { if ($this->getProfile()->isSingleSelect()) { return $this->setProfileOptionId((int)$v); } return parent::setValue($v); } public function isViewable($memberId = null) { if (is_null($memberId)) { $memberId = sfContext::getInstance()->getUser()->getMemberId(); } switch ($this->getPublicFlag()) { case ProfilePeer::PUBLIC_FLAG_FRIEND: $relation = MemberRelationshipPeer::retrieveByFromAndTo($this->getMemberId(), $memberId); if ($relation && $relation->isFriend()) { return true; } case ProfilePeer::PUBLIC_FLAG_PRIVATE: return ($this->getMemberId() == $memberId); case ProfilePeer::PUBLIC_FLAG_SNS: return true; } } }