当前位置: 首页>>代码示例>>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;未经允许,请勿转载。