public function getInfoTpls($ident, $tplDir = null) { $key = unique_from_path($ident, $tplDir); if (!array_key_exists($key, $this->INFO_TEMPLATES_LISTS)) { $this->INFO_TEMPLATES_LISTS[$key] = array(); $entity = $this->getFoldedEntity($ident, true); foreach ($this->getInfoDm($ident)->getDirContent($tplDir, PsConst::EXT_TPL) as $tplDi) { $this->INFO_TEMPLATES_LISTS[$key][] = FoldedInfoTpl::inst($entity, $tplDi); } } return $this->INFO_TEMPLATES_LISTS[$key]; }
public function __construct(DirItem $dir) { $this->LOGGER = Autoload::getLogger(); $this->classesDir = $dir; $this->classPathFile = DirManager::autogen('classpath')->getDirItem(null, unique_from_path($dir->getRelPath())); }
public function getSpriteName() { return unique_from_path('dir', $this->relPath); }