예제 #1
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'art_id', array('tags'));
 }
예제 #2
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'ip_id');
 }
예제 #3
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'u_id', array('group'));
 }
예제 #4
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'recordid');
 }
예제 #5
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'order_id', array('order_positions', 'delivery'));
 }
예제 #6
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'vl_id', array('vv_values', 'ms_value'));
 }
예제 #7
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'tre_id', array('child'));
 }
예제 #8
0
 /**
  * Delete the record in DB by it struct
  *
  * @param $struct rad_struct
  * @param $tablename string
  *
  * @return integer number of deleted items
  */
 public static function delete_struct(rad_struct $struct, $tablename)
 {
     $pr_key = $struct->getPrimaryKey();
     if ($pr_key) {
         $res = self::$dbc->prepare('DELETE FROM ' . $tablename . ' WHERE `' . $pr_key . '`=?');
         $res->execute(array($struct->{$pr_key}));
         if ($res and rad_config::getParam('cache.power', false)) {
             //rad_cacheutils::incTableVer($tablename);
         }
         return $res->rowCount();
     } else {
         throw new rad_exception('Функция delete_struct работает ТОЛЬКО с теми структурами, у которых объявлен primary key как одно поле!');
         $res = 0;
         return $res;
     }
 }
예제 #9
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'rro_id', array('order_status', 'order_dt', 'order_currency'));
 }
예제 #10
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'vt_id', array('vt_answers'));
 }
예제 #11
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'id', array('original_params'));
 }
예제 #12
0
파일: bp.php 프로젝트: ValenokPC/tabernacms
 function __construct($array = NULL)
 {
     parent::__construct($array, 'bp_id', array('product'));
 }
예제 #13
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'vtq_id', array('cnt_ans'));
 }
예제 #14
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'rcm_id', array('subcomments'));
 }
예제 #15
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'id', array('image', 'filename', 'includes', 'description', 'themeid', 'themefolder'));
 }
예제 #16
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'cat_id', array('type_link', 'tree_link', 'cat_ct_name', 'currency_name', 'currency_indicate', 'price', 'img_filename', 'type_vl_link', 'images_link', 'tree_catin_link', 'cat_dateupdated', 'cat_special_sp', 'cat_special_spnews', 'cat_special_spoffer', 'cat_special_sphit', 'tags', 'download_files', 'comments', 'models_3d'));
 }
예제 #17
0
 function __construct($array = NULL)
 {
     parent::__construct($array, 'inc_id', array('incinal_id', 'params_personal', 'original_params'));
 }