Example #1
0
 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];
 }
Example #2
0
 public function __construct(DirItem $dir)
 {
     $this->LOGGER = Autoload::getLogger();
     $this->classesDir = $dir;
     $this->classPathFile = DirManager::autogen('classpath')->getDirItem(null, unique_from_path($dir->getRelPath()));
 }
Example #3
0
 public function getSpriteName()
 {
     return unique_from_path('dir', $this->relPath);
 }