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; }
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]); } } } }
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; }