コード例 #1
0
ファイル: GroupSet.php プロジェクト: yakamoz-fang/concrete
 /**
  * @see \C5TL\Parser\DynamicItem::parseManual()
  */
 public function parseManual(\Gettext\Translations $translations, $concrete5version)
 {
     if (class_exists('\\GroupSet', true)) {
         foreach (\GroupSet::getList() as $gs) {
             $this->addTranslation($translations, $gs->getGroupSetName(), 'GroupSetName');
         }
     }
 }
コード例 #2
0
ファイル: sets.php プロジェクト: nveid/concrete5
 public function on_start()
 {
     parent::on_start();
     $this->set('groupSets', GroupSet::getList());
     $gl = new GroupSearch();
     $gl->setItemsPerPage(10000);
     $gArray = $gl->getPage();
     $groups = array();
     foreach ($gArray as $g) {
         $groups[] = Group::getByID($g['gID']);
     }
     $this->set('groups', $groups);
 }