コード例 #1
0
 public function getFromList(&$list, $selectFrom = null)
 {
     parent::getFromList($list, $selectFrom);
     $rawlist = $list;
     $list = array();
     foreach ($rawlist as $item) {
         if ($this->allowDisplay($item['val'])) {
             $list[] = $item;
         }
     }
     return;
 }
コード例 #2
0
 public function getFromList(&$list, $selectFrom = null)
 {
     parent::getFromList($list, $selectFrom);
     $usedFields = $this->getUsedFields();
     for ($i = 0; $i < count($list); $i++) {
         foreach ($usedFields as $field) {
             if ($list[$i]['val'] == $field && $list[$i]['val'] != $this->value) {
                 unset($list[$i]);
             }
         }
     }
 }
コード例 #3
0
 public function getFromList(&$list, $selectFrom = null)
 {
     parent::getFromList($list, $selectFrom);
     $svc = Openbiz::getService("market.lib.PackageService");
     foreach ($list as $key => $record) {
         $repo_uri = $record['pic'];
         unset($record['pic']);
         $repoInfo = $svc->discoverRepository($repo_uri);
         $record['txt'] = $repoInfo['_repo_name'];
         $list[$key] = $record;
     }
     return;
 }