Example #1
0
 public function __construct($poetIdent, FoldedInfoTpl $verseTpl)
 {
     parent::__construct($poetIdent, $verseTpl->getDirItem()->getNameNoExt());
     $this->infoTpl = $verseTpl;
 }
Example #2
0
 public function getAllInfoTpls($ident)
 {
     if (!is_array($this->ALL_INFO_TEMPLATES_LISTS)) {
         $this->ALL_INFO_TEMPLATES_LISTS = array();
         $entity = $this->getFoldedEntity($ident, true);
         /* @var $tplDi DirItem */
         foreach ($this->getInfoDm($ident)->getDirContentFull(null, PsConst::EXT_TPL) as $tplDi) {
             $this->ALL_INFO_TEMPLATES_LISTS[] = FoldedInfoTpl::inst($entity, $tplDi);
         }
     }
     return $this->ALL_INFO_TEMPLATES_LISTS;
 }
Example #3
0
 public static function urlFoldingTplInfoEdit($entity, FoldedInfoTpl $tpl)
 {
     return self::getUrl(self::MODE_FOLDING_TPL_EDIT, array('entity' => $entity, 'tplpath' => urlencode($tpl->getInfoRelPath())));
 }