public function getValue() { $value = parent::getValue(); $firstname = Openbiz::$app->getClientProxy()->getFormInputs("fld_first_name"); $lastname = Openbiz::$app->getClientProxy()->getFormInputs("fld_last_name"); $company = Openbiz::$app->getClientProxy()->getFormInputs("fld_company"); $value = str_replace("@@Firstname@@", $firstname, $value); $value = str_replace("@@Lastname@@", $lastname, $value); $value = str_replace("@@Company@@", $company, $value); return $value; }
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; }
protected function readMetaData(&$xmlArr) { parent::readMetaData($xmlArr); $this->continent = isset($xmlArr["ATTRIBUTES"]["CONTINENT"]) ? $xmlArr["ATTRIBUTES"]["CONTINENT"] : ""; }
protected function translateList(&$list, $tag) { $package = $this->getSelectFrom(); I18n::AddLangData(substr($package, 0, intval(strpos($package, '.'))), "extend"); parent::translateList($list, $tag); }