Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
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;
 }
Ejemplo n.º 3
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]);
             }
         }
     }
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
0
 protected function readMetaData(&$xmlArr)
 {
     parent::readMetaData($xmlArr);
     $this->continent = isset($xmlArr["ATTRIBUTES"]["CONTINENT"]) ? $xmlArr["ATTRIBUTES"]["CONTINENT"] : "";
 }
Ejemplo n.º 6
0
 protected function translateList(&$list, $tag)
 {
     $package = $this->getSelectFrom();
     I18n::AddLangData(substr($package, 0, intval(strpos($package, '.'))), "extend");
     parent::translateList($list, $tag);
 }