當前位置: 首頁>>代碼示例>>PHP>>正文


PHP People::__construct方法代碼示例

本文整理匯總了PHP中People::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP People::__construct方法的具體用法?PHP People::__construct怎麽用?PHP People::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在People的用法示例。


在下文中一共展示了People::__construct方法的14個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

 function __construct()
 {
     parent::__construct();
     $this->load->model('client_model', 'client');
     $this->people = $this->client;
     $this->form_validation_rules['people'] = array(array('field' => 'profiles[來源類型]', 'label' => '客戶來源類型', 'rules' => 'required'), array('field' => 'people[staff]', 'label' => '來源律師', 'rules' => 'required'));
     $this->load->view_path['edit'] = 'client/edit';
 }
開發者ID:flyingfish2013,項目名稱:Syssh,代碼行數:8,代碼來源:client.php

示例2: array

 function __construct()
 {
     parent::__construct();
     $this->people = $this->team;
     $this->search_items = array('name', 'labels', 'is_relative_of');
     $this->list_args = array('name' => array('heading' => '名稱'), 'leader_name' => array('heading' => '組長'), 'labels' => array('heading' => '標簽', 'parser' => array('function' => array($this->team, 'getCompiledLabels'), 'args' => array('id'))));
     $this->load->view_path['list_aside'] = 'team/list_sidebar';
     $this->load->view_path['edit'] = 'team/edit';
 }
開發者ID:flyingfish2013,項目名稱:Syssh,代碼行數:9,代碼來源:team.php

示例3: array

 function __construct()
 {
     $this->permission = array('signup' => true, 'login' => true, 'logout' => array(), 'submit' => true, 'setfields' => true, 'profile' => array(), 'match' => true);
     parent::__construct();
     $this->people = $this->user;
     if ($this->company->ucenter) {
         require APPPATH . 'third_party/ucenter_client/config.php';
         require APPPATH . 'third_party/ucenter_client/client.php';
     }
 }
開發者ID:flyingfish2013,項目名稱:Syssh,代碼行數:10,代碼來源:user.php

示例4: array

 function __construct()
 {
     parent::__construct();
     $this->load->model('contact_model', 'contact');
     $this->people = $this->contact;
     $this->load->view_path['edit'] = 'client/edit';
     $this->form_validation_rules['people'] = array(array('field' => 'profiles[來源類型]', 'label' => '客戶來源類型', 'rules' => 'required'), array('field' => 'people[staff]', 'label' => '來源律師', 'rules' => 'required'));
     if ($this->user->isLogged('service')) {
         $this->list_args += array('uid' => array('heading' => '添加人', 'parser' => array('function' => function ($uid) {
             return $this->user->fetch($uid, 'name');
         }, 'args' => array('uid'))), 'time_insert' => array('heading' => '添加時間', 'parser' => array('function' => function ($time_insert) {
             return date('Y-m-d', $time_insert);
         }, 'args' => array('time_insert'))));
         $this->search_items = array_merge($this->search_items, array('time_insert/from', 'time_insert/to', 'uid'));
     }
 }
開發者ID:flyingfish2013,項目名稱:Syssh,代碼行數:16,代碼來源:contact.php

示例5: array

 function __construct()
 {
     parent::__construct();
     $this->load->model('student_model', 'student');
     $this->load->model('classes_model', 'classes');
     $this->people = $this->student;
     $this->score_list_args = array('exam_name' => array('heading' => '考試'), '語文' => array('heading' => '語文', 'cell' => '{語文}<span class="rank">{rank_語文}</span>'), '數學' => array('heading' => '數學', 'cell' => '{數學}<span class="rank">{rank_數學}</span>'), '英語' => array('heading' => '英語', 'cell' => '{英語}<span class="rank">{rank_英語}</span>'), '物理' => array('heading' => '物理', 'cell' => '{物理}<span class="rank">{rank_物理}</span>'), '化學' => array('heading' => '化學', 'cell' => '{化學}<span class="rank">{rank_化學}</span>'), '生物' => array('heading' => '生物', 'cell' => '{生物}<span class="rank">{rank_生物}</span>'), '地理' => array('heading' => '地理', 'cell' => '{地理}<span class="rank">{rank_地理}</span>'), '曆史' => array('heading' => '曆史', 'cell' => '{曆史}<span class="rank">{rank_曆史}</span>'), '政治' => array('heading' => '政治', 'cell' => '{政治}<span class="rank">{rank_政治}</span>'), '信息' => array('heading' => '信息', 'cell' => '{信息}<span class="rank">{rank_信息}</span>'), '3總' => array('heading' => '3總', 'cell' => '{3總}<span class="rank">{rank_3總}</span>'), '4總/5總' => array('heading' => '4總/5總', 'cell' => '{5總}<span class="rank">{rank_5總}</span>'), '8總' => array('heading' => '8總', 'cell' => '{8總}<span class="rank">{rank_8總}</span>'));
     $this->team_list_args['name'] = array('heading' => '名稱', 'parser' => array('function' => function ($name, $type, $accepted) {
         $out = $name;
         if ($type == 'society') {
             if (is_null($accepted)) {
                 $out .= ' 待批準加入';
             } elseif ($accepted) {
                 $out .= ' 已批準加入';
             } else {
                 $out .= ' 已拒絕加入';
             }
         }
         return $out;
     }, 'args' => array('name', 'type', 'accepted')));
     $this->team_list_args['leader_name'] = array('heading' => '負責人', 'cell' => array('data' => '<a href="#message/to/{leader}">{leader_name}</a>'));
     $this->load->view_path['edit'] = 'student/edit';
 }
開發者ID:flyingfish2013,項目名稱:Syssh,代碼行數:23,代碼來源:student.php

示例6: __construct

 public function __construct($name, $age)
 {
     parent::__construct($name, '男', $age);
 }
開發者ID:romen2014,項目名稱:Study,代碼行數:4,代碼來源:Man.php

示例7: __construct

 public function __construct($client_name, $client_sex, $client_artist_name, $client_music_genre, $client_song_name, $client_bill)
 {
     parent::__construct($client_name, $client_sex, $client_artist_name, $client_music_genre, $client_song_name);
     $this->bill = $client_bill;
 }
開發者ID:kokolina1888,項目名稱:HW_phpOOP-MVC,代碼行數:5,代碼來源:client.php

示例8: __construct

 public function __construct($age, $name)
 {
     parent::__construct($age, $name, 'male');
 }
開發者ID:royye62,項目名稱:mydemo,代碼行數:4,代碼來源:Man.php

示例9:

 function __construct()
 {
     parent::__construct();
     $this->load->model('staff_model', 'staff');
     $this->people = $this->staff;
 }
開發者ID:flyingfish2013,項目名稱:Syssh,代碼行數:6,代碼來源:staff.php

示例10: __construct

 public function __construct($bartender_name, $bartender_sex, $bartender_artist_name, $bartender_music_genre, $bartender_song_name, $bartender_salary, $bartender_phone)
 {
     parent::__construct($bartender_name, $bartender_sex, $bartender_artist_name, $bartender_music_genre, $bartender_song_name);
     $this->salary = $bartender_salary;
     $this->phone = $bartender_phone;
 }
開發者ID:kokolina1888,項目名稱:HW_phpOOP-MVC,代碼行數:6,代碼來源:bartender.php

示例11:

 function __construct($name)
 {
     parent::__construct($name);
     echo "я девочка<br>";
 }
開發者ID:sepaev,項目名稱:domains,代碼行數:5,代碼來源:magicMethods.php

示例12: __construct

 public function __construct(Database $db = NULL)
 {
     $this->db = $db;
     parent::__construct($db);
     $this->removeAllValues();
 }
開發者ID:patrickbraud,項目名稱:CapstoneProject,代碼行數:6,代碼來源:Person.php

示例13: __construct

 public function __construct($grade)
 {
     parent::__construct();
     $this->grade = $grade;
 }
開發者ID:GStepOne,項目名稱:CI,代碼行數:5,代碼來源:extends.php

示例14: __construct

 public function __construct($teach_name, $teach_phone, $spec)
 {
     parent::__construct($teach_name, $teach_phone);
     $this->specialty = $spec;
     $this->subjects = array();
 }
開發者ID:simonaTsenova,項目名稱:homeworks-OOP,代碼行數:6,代碼來源:school-software.php


注:本文中的People::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。