Esempio n. 1
0
 public function getFieldProperties()
 {
     $out = parent::getFieldProperties();
     $out['name'] = array('type' => 'text', 'caption' => 'Название', 'required' => true);
     $out['api_password'] = array('type' => 'text', 'caption' => 'Пароль для API');
     return $out;
 }
Esempio n. 2
0
 public function load_list($params = array())
 {
     $list = parent::load_list($params);
     foreach ($list as $item) {
         $item->status_name = ocsPkgOcsOrderStatusHelperLibrary::getStatusName($item->status);
     }
     return $list;
 }
Esempio n. 3
0
 public function delete()
 {
     if (parent::delete()) {
         imagePkgHelperLibrary::deleteImages($this);
     }
 }
Esempio n. 4
0
 public function load_list($params = array())
 {
     $ocs_client = Application::getEntityInstance('ocs_client');
     $client_table = $ocs_client->getTableName();
     $table = $this->getTableName();
     $params['from'][] = "\r\n\t\t\t\tLEFT JOIN {$client_table} ON {$client_table}.id = {$table}.ocs_client_id\r\n\t\t\t";
     $params['fields'][] = "{$client_table}.name AS client_name";
     $list = parent::load_list($params);
     $this->loadFlow($list);
     return $list;
 }