コード例 #1
0
ファイル: card_serial.php プロジェクト: RenzcPHP/3dproduct
 public function __construct()
 {
     parent::__construct();
     role::check('card_system_manage');
     $this->cardDao = MyCard_Core::instance();
     $this->cardTypeDao = MyCardType_Core::instance();
     $this->cardSerialDao = MyCardSerial_Core::instance();
     $this->cardLogDao = MyCardLog_Core::instance();
     $orderby_arr = array(0 => array('id' => 'DESC'), 1 => array('id' => 'ASC'), 2 => array('order' => 'ASC'), 3 => array('order' => 'DESC'));
     $orderby = controller_tool::orderby($orderby_arr);
     $query_struct = array('where' => array(), 'orderby' => $orderby);
     $tempList = $this->cardTypeDao->lists($query_struct);
     $this->cardTypeMap = array();
     $this->cardTypeMap[0] = '无';
     foreach ($tempList as $aCardType) {
         $this->cardTypeMap[$aCardType['id']] = $aCardType['name'];
     }
 }
コード例 #2
0
ファイル: card_type.php プロジェクト: RenzcPHP/3dproduct
 public function __construct()
 {
     parent::__construct();
     role::check('card_system_manage');
     $this->cardTypeDao = MyCardType_Core::instance();
 }