コード例 #1
0
ファイル: posts.php プロジェクト: MBerguer/wp-demo
 function onGeneratorList(&$group, &$list)
 {
     $group[self::$_group] = 'Posts';
     if (!isset($list[self::$_group])) {
         $list[self::$_group] = array();
     }
     $list[self::$_group]['posts'] = N2GeneratorInfo::getInstance(self::$groupLabel, n2_('Posts by filter'), $this->getPath() . 'posts')->setType('article');
     $list[self::$_group]['postsbyids'] = N2GeneratorInfo::getInstance(self::$groupLabel, n2_('Posts by IDs'), $this->getPath() . 'postsbyids')->setType('article');
 }
コード例 #2
0
 function onGeneratorList(&$group, &$list)
 {
     $group[self::$group] = self::$groupLabel;
     if (!isset($list[self::$group])) {
         $list[self::$group] = array();
     }
     $list[self::$group]['article'] = N2GeneratorInfo::getInstance(self::$groupLabel, n2_('Articles'), $this->getPath() . 'article')->setType('article');
     $list[self::$group]['category'] = N2GeneratorInfo::getInstance(self::$groupLabel, n2_('Categories'), $this->getPath() . 'category')->setType('article');
 }