选择文件名文件大小最后修改时间操作
[📄] 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
*/ class sfOpenPNEView extends sfPHPView { public $customizeConditions = array( 'category' => array( 'all' => array(), ), 'parts' => array( 'all' => array(), ), 'target' => array( 'all' => array(), ), ); public $customizeTemplates = array(); protected $customizeComponents = array(); /** * Sets the customize. * * @param string $attributeName A template attribute name * @param string $moduleName A module name * @param string $templateName A template name * @param array $categoryNames Category names * @param array $partsNames Parts names * @param array $targetNames Target names * @param bool $isComponent */ public function setCustomize($attributeName, $moduleName, $templateName, $categoryNames, $partsNames, $targetNames, $isComponent = false) { if (empty($categoryNames)) { $this->customizeConditions['category']['all'][] = $attributeName; } else { foreach ($categoryNames as $categoryName) { $this->customizeConditions['category'][$categoryName][] = $attributeName; } } if (empty($partsNames)) { $this->customizeConditions['parts']['all'][] = $attributeName; } else { foreach ($partsNames as $partsName) { $this->customizeConditions['parts'][$partsName][] = $attributeName; } } if (empty($targetNames)) { $this->customizeConditions['target']['all'][] = $attributeName; } else { foreach ($targetNames as $targetName) { $this->customizeConditions['target'][$targetName][] = $attributeName; } } $this->customizeTemplates[$attributeName] = array($moduleName, $templateName, $isComponent); } /** * Gets the customize. * * @param array $categoryName A category name * @param array $partsName A parts name * @param array $targetName A target name */ public function getCustomize($categoryName, $partsName, $targetName) { $result = array(); $categoryCustomizes = $this->customizeConditions['category']['all']; if ($categoryName && !empty($this->customizeConditions['category'][$categoryName])) { $categoryCustomizes = array_merge($categoryCustomizes, $this->customizeConditions['category'][$categoryName]); } $partsCustomizes = $this->customizeConditions['parts']['all']; if ($partsName && !empty($this->customizeConditions['parts'][$partsName])) { $partsCustomizes = array_merge($partsCustomizes, $this->customizeConditions['parts'][$partsName]); } $targetCustomizes = $this->customizeConditions['target']['all']; if ($targetName && !empty($this->customizeConditions['target'][$targetName])) { $targetCustomizes = array_merge($targetCustomizes, $this->customizeConditions['target'][$targetName]); } $customizes = array_intersect($categoryCustomizes, $partsCustomizes, $targetCustomizes); foreach ($customizes as $customize) { $result[] = $this->customizeTemplates[$customize]; } return $result; } }