当前位置: 首页>>代码示例>>PHP>>正文


PHP Crud::__construct方法代码示例

本文整理汇总了PHP中Crud::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Crud::__construct方法的具体用法?PHP Crud::__construct怎么用?PHP Crud::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Crud的用法示例。


在下文中一共展示了Crud::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    function __construct()
    {
        // Call the Model constructor
        parent::__construct();
		
		$this->_setTableName($this->table_name);
    }
开发者ID:27insep,项目名称:simple-company-website,代码行数:7,代码来源:md_slide.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->table = 'order';
     $this->idkey = 'id_sessions';
     $this->lib_auth->check_admin();
 }
开发者ID:angel224,项目名称:podarok,代码行数:7,代码来源:Mdl_order.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->table = 'good';
     $this->idkey = 'id_good';
     $this->load->library('MY_Form_validation');
 }
开发者ID:angel224,项目名称:podarok,代码行数:7,代码来源:Mdl_basket.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->table = 'menu';
     $this->idkey = 'id';
     $this->p = 1;
     header('Content-type: text/html; charset=utf-8');
 }
开发者ID:angel224,项目名称:podarok,代码行数:8,代码来源:viev.php

示例5: array

 function __construct()
 {
     parent::__construct();
     $this->title = "Statutory Holidays";
     $this->table = "{$_SESSION['DB_PREFIX']}bankholiday";
     $this->dialogwidth = 500;
     $this->sql = "SELECT A.*  \n\t\t\t\t FROM {$_SESSION['DB_PREFIX']}bankholiday A \n\t\t\t\t ORDER BY startdate";
     $this->columns = array(array('name' => 'id', 'length' => 6, 'pk' => true, 'showInView' => false, 'editable' => false, 'bind' => false, 'filter' => false, 'label' => 'ID'), array('name' => 'name', 'length' => 55, 'label' => 'Name'), array('name' => 'startdate', 'filter' => false, 'datatype' => 'date', 'associatedcolumns' => array('startdate_half'), 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Start Date'), array('name' => 'startdate_half', 'type' => 'CHECKBOX', 'showInView' => false, 'filter' => false, 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Full Day'), array('name' => 'enddate', 'filter' => false, 'datatype' => 'date', 'associatedcolumns' => array('enddate_half'), 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'End Date'), array('name' => 'enddate_half', 'filter' => false, 'type' => 'CHECKBOX', 'showInView' => false, 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Full Day'), array('name' => 'daystaken', 'filter' => false, 'align' => 'center', 'length' => 15, 'readonly' => true, 'required' => false, 'label' => 'Duration'));
 }
开发者ID:prodigyworks,项目名称:Trianik,代码行数:9,代码来源:managestatholidays.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->idkey = 'name';
     $this->table = 'img';
     $this->load->helper('directory');
     $d = $this->config->item('upload_path');
     $this->data['list'] = directory_map("{$d}", true);
     //Берем только картинки без минимизации
     return $this->data['list'];
 }
开发者ID:angel224,项目名称:podarok,代码行数:11,代码来源:mdl_img.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_index_fields[] = name();
 }
开发者ID:DeDoOozZz,项目名称:sales,代码行数:5,代码来源:Cash_types.php

示例8: SUM

 function __construct()
 {
     parent::__construct();
     $this->title = "Holidays";
     $this->table = "{$_SESSION['DB_PREFIX']}holiday";
     $this->dialogwidth = 500;
     $this->onClickCallback = "checkStatus";
     $this->sql = "SELECT A.*, " . "B.holidayentitlement," . "B.firstname, B.lastname, " . "(SELECT SUM(D.daystaken) FROM {$_SESSION['DB_PREFIX']}holiday D WHERE YEAR(D.startdate) = YEAR(A.startdate) AND D.memberid = A.memberid) AS daysremaining " . "FROM {$_SESSION['DB_PREFIX']}holiday A " . "INNER JOIN {$_SESSION['DB_PREFIX']}members B " . "ON B.member_id = A.memberid";
     $this->messages = array(array('id' => 'holidayid'), array('id' => 'reasonnotes'));
     $this->columns = array(array('name' => 'id', 'length' => 6, 'pk' => true, 'showInView' => false, 'editable' => false, 'bind' => false, 'filter' => false, 'label' => 'ID'), array('name' => 'requestedbyname', 'type' => 'DERIVED', 'length' => 30, 'bind' => false, 'editable' => false, 'filter' => false, 'sortcolumn' => 'B.firstname', 'function' => 'fullName', 'label' => 'Employee'), array('name' => 'memberid', 'datatype' => 'user', 'length' => 12, 'showInView' => false, 'label' => 'Employee'), array('name' => 'remaining', 'type' => 'DERIVED', 'length' => 12, 'filter' => false, 'bind' => false, 'editable' => false, 'function' => 'daysRemaining', 'align' => 'center', 'label' => 'Days Remainings'), array('name' => 'requesteddate', 'datatype' => 'date', 'length' => 10, 'filter' => false, 'readonly' => true, 'label' => 'Request Date'), array('name' => 'startdate', 'filter' => false, 'datatype' => 'date', 'associatedcolumns' => array('startdate_half'), 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Start Date'), array('name' => 'startdate_half', 'type' => 'CHECKBOX', 'showInView' => false, 'filter' => false, 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Full Day'), array('name' => 'enddate', 'filter' => false, 'datatype' => 'date', 'associatedcolumns' => array('enddate_half'), 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'End Date'), array('name' => 'enddate_half', 'filter' => false, 'type' => 'CHECKBOX', 'showInView' => false, 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Full Day'), array('name' => 'daystaken', 'filter' => false, 'align' => 'center', 'length' => 15, 'readonly' => true, 'required' => false, 'label' => 'Duration'));
 }
开发者ID:prodigyworks,项目名称:Trianik,代码行数:11,代码来源:holidays.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model($this->model);
     $this->_primary_key = $this->{$this->model}->_primary_keys[0];
 }
开发者ID:DeDoOozZz,项目名称:sales,代码行数:6,代码来源:__Branches.php

示例10: __construct

 public function __construct(\Magento\Framework\App\ResourceConnection $resource, \Praxigento\Core\Repo\Query\IHasSelect $factorySelect)
 {
     parent::__construct($resource);
     $this->_factorySelect = $factorySelect;
 }
开发者ID:praxigento,项目名称:mobi_mod_mage2_core,代码行数:5,代码来源:Agg.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:DeDoOozZz,项目名称:sales,代码行数:4,代码来源:Services.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->library('Cdn');
     //        $this->_index_fields[] = name();
 }
开发者ID:DeDoOozZz,项目名称:sales,代码行数:6,代码来源:Users.php

示例13: __construct

 public function __construct($db) {
     parent::__construct($db, 'tcontact');
 }
开发者ID:hendrosteven,项目名称:f3-template,代码行数:3,代码来源:Contact.php

示例14: __construct

 public function __construct($db) {
      parent::__construct($db, 'accounts');
 }
开发者ID:hendrosteven,项目名称:f3-adminlte,代码行数:3,代码来源:Account.php

示例15: array

 function __construct()
 {
     parent::__construct();
     $this->title = "Absences";
     $this->table = "{$_SESSION['DB_PREFIX']}absence";
     $this->dialogwidth = 500;
     $this->onClickCallback = "checkStatus";
     $this->sql = "SELECT A.*, " . "B.firstname, B.lastname " . "FROM {$_SESSION['DB_PREFIX']}absence A " . "INNER JOIN {$_SESSION['DB_PREFIX']}members B " . "ON B.member_id = A.memberid";
     $this->messages = array(array('id' => 'absenceid'), array('id' => 'reasonnotes'));
     $this->columns = array(array('name' => 'id', 'length' => 6, 'pk' => true, 'showInView' => false, 'editable' => false, 'bind' => false, 'filter' => false, 'label' => 'ID'), array('name' => 'requestedbyname', 'type' => 'DERIVED', 'length' => 30, 'bind' => false, 'editable' => false, 'filter' => false, 'sortcolumn' => 'B.firstname', 'function' => 'fullName', 'label' => 'Employee'), array('name' => 'memberid', 'datatype' => 'user', 'length' => 12, 'showInView' => false, 'label' => 'Employee'), array('name' => 'absencetype', 'length' => 30, 'label' => 'Type', 'type' => 'COMBO', 'options' => array(array('value' => 'Unauthorised', 'text' => 'Unauthorised'), array('value' => 'Authorised', 'text' => 'Authorised'), array('value' => 'Sick', 'text' => 'Sick'), array('value' => 'Family Matter', 'text' => 'Family Matter'), array('value' => 'Not In', 'text' => 'Not In'), array('value' => 'Leaver', 'text' => 'Leaver'))), array('name' => 'requesteddate', 'datatype' => 'date', 'length' => 10, 'filter' => false, 'readonly' => true, 'label' => 'Request Date'), array('name' => 'startdate', 'filter' => false, 'datatype' => 'date', 'associatedcolumns' => array('startdate_half'), 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Start Date'), array('name' => 'startdate_half', 'type' => 'CHECKBOX', 'showInView' => false, 'filter' => false, 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Full Day'), array('name' => 'enddate', 'filter' => false, 'datatype' => 'date', 'associatedcolumns' => array('enddate_half'), 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'End Date'), array('name' => 'enddate_half', 'filter' => false, 'type' => 'CHECKBOX', 'showInView' => false, 'length' => 15, 'onchange' => 'calculateDuration', 'label' => 'Full Day'), array('name' => 'daystaken', 'filter' => false, 'align' => 'center', 'length' => 15, 'readonly' => true, 'required' => false, 'label' => 'Duration'));
 }
开发者ID:prodigyworks,项目名称:Trianik,代码行数:11,代码来源:absences.php


注:本文中的Crud::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。