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


PHP EntityManager::__construct方法代码示例

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


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

示例1: array

 function __construct($id = 0, $templateType = 'list', $pageSize = 25, $currentPage = 1, $sortBy = '')
 {
     parent::__construct();
     /*****************************/
     /* START: Edit per class file 
     		/*****************************/
     $this->id = $id;
     $this->tablePrefix = 'anc_';
     $this->tableName = $this->tablePrefix . 'administratoraccess';
     $this->idName = 'id_administratoraccess';
     //Web variables
     $this->webUrl = "";
     //List page variables
     $this->listFileName = 'administrator-access-list.php';
     $this->listContentTemplate = 'administrator-access-list.tpl';
     $this->listHtmlPageTitle = 'Administrator Access';
     $this->listPageTitle = 'Administrator Access';
     $this->listDefaultSort = "2";
     $this->entityName = 'Administrator Access';
     $this->entityAliasName = 'administratoraccess';
     $this->entityStatusFieldName = 'access_status';
     $this->insertButtonName = 'Insert new Access';
     //Edit page variables
     $this->editFileName = 'administrator-access-edit.php';
     $this->editHtmlPageTitle = 'Edit Administrator Access';
     $this->editPageTitle = 'Edit Administrator Access';
     $this->editContentTemplate = 'administrator-access-edit.tpl';
     $this->insertHtmlPageTitle = 'Insert Administrator Access';
     $this->insertPageTitle = 'Insert Administrator Access';
     $this->editPanelHeading = 'Access Details';
     //Edit buttons
     $this->insertAsNewEnabled = 1;
     //Search
     $this->searchEnabled = 0;
     //List action variables
     $this->enableDelete = true;
     $this->enableEdit = true;
     //List Column Names
     $this->listColumns = array('ID', 'Access', 'Alias', 'Access Status', 'Creation Date');
     //List query
     $this->listSql = "SELECT DISTINCT\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess.id_administratoraccess as 'id',\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess.access_name as 'access_name',\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess.access_alias as 'access_alias',\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess.access_status as 'access_status',\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess.cdate as 'cdate',\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess.mdate as 'mdate'\t\t\t\t\t\t\t\t\t\r\n\t\t\tFROM\r\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratoraccess";
     //Edit form fields
     $this->formFieldNames = array('id_administratoraccess', 'access_name', 'access_alias', 'access_status', 'cdate', 'mdate');
     //Page size
     $this->pageSize = isset($pageSize) && $pageSize != '' ? $pageSize : 25;
     /*****************************/
     /* END: Edit per class file 
     		/*****************************/
     //Pagination variables
     $this->currentPage = $currentPage;
     //Template type variables
     $this->templateType = $templateType;
     //Sort variables
     $this->listCurrentSort = isset($sortBy) && trim($sortBy) != '' ? trim($sortBy) : $this->listDefaultSort;
     $this->listCurrentSortAbs = abs($this->listCurrentSort);
     $this->listNewCurrentSort = -$this->listCurrentSort;
 }
开发者ID:ndumisom,项目名称:ANYC-Project,代码行数:57,代码来源:administratoraccess.admin.class.php

示例2: array

 function __construct($id = 0, $templateType = 'list', $pageSize = 10, $currentPage = 1, $sortBy = '')
 {
     parent::__construct();
     global $backend_ID;
     $this->backend_ID = $backend_ID;
     /*****************************/
     /* START: Edit per class file 
     		/*****************************/
     $this->encrypt_key = '4F4DhS2ardmore3DHekS9r4d';
     $this->adminId = $id;
     $this->id = $id;
     $this->tablePrefix = 'anc_';
     $this->tableName = $this->tablePrefix . 'administrator';
     $this->idName = 'id_administrator';
     //Web variables
     $this->webUrl = "";
     //List page variables
     $this->listFileName = 'administrator-list';
     $this->listContentTemplate = 'administrator-list.tpl';
     $this->listHtmlPageTitle = 'Administrators';
     $this->listPageTitle = 'Administrators';
     $this->listDefaultSort = "2";
     $this->entityName = 'Administrator';
     $this->entityAliasName = 'administrator';
     $this->entityStatusFieldName = 'administrator_status';
     $this->insertButtonName = 'Insert new Administrator';
     //Edit page variables
     $this->editFileName = 'profile-edit';
     $this->editHtmlPageTitle = 'Edit Your profile';
     $this->editPageTitle = 'Edit Your profile';
     $this->editContentTemplate = 'profile-edit.tpl';
     $this->insertHtmlPageTitle = 'Insert Administrator';
     $this->insertPageTitle = 'Insert Administrator';
     $this->editPanelHeading = 'Profile Details';
     //Edit buttons
     $this->insertAsNewEnabled = 1;
     //Search
     $this->searchEnabled = 1;
     //List action variables
     $this->enableDelete = true;
     $this->enableEdit = true;
     //List Column Names
     $this->listColumns = array('ID', 'Email Address', 'First Name', 'Last Name', 'Admin Type', 'Admin Status', 'Creation Date', 'Last Login Date');
     //List query
     $this->listSql = "SELECT DISTINCT\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".id_administrator as 'id',\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".email_address as 'email_address',\t\t\t\t\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".first_name as 'first_name',\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".last_name as 'last_name',\n\t\t\t\t" . mysql_escape_string($this->tablePrefix) . "administratortype.administratortype_name as 'administratortype_name',\n \t\t\t\t" . mysql_escape_string($this->tableName) . ".administrator_status as 'administrator_status',\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".cdate as 'cdate',\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".ldate as 'ldate'\n\t\t\tFROM\n\t\t\t\t" . mysql_escape_string($this->tableName) . " INNER JOIN " . mysql_escape_string($this->tablePrefix) . "administratortype ON " . mysql_escape_string($this->tableName) . ".id_administratortype = " . mysql_escape_string($this->tablePrefix) . "administratortype.id_administratortype\n\t\t\tWHERE\n\t\t\t\t" . mysql_escape_string($this->tableName) . ".id_administrator != 1";
     //Allow the (normal) user to view all non super users only by setting where clause
     if ($_SESSION[$backend_ID]['ADMIN_TYPE'] == 'user') {
         $this->setListFilter('user');
     }
     //Edit form fields
     $this->formFieldNames = array('id_administrator', 'id_administratortype', 'first_name', 'last_name', 'email_address', 'password', 'administrator_status');
     //Page size
     $this->pageSize = isset($pageSize) && $pageSize != '' ? $pageSize : 25;
     /*****************************/
     /* END: Edit per class file 
     		/*****************************/
     //Pagination variables
     $this->currentPage = $currentPage;
     //Template type variables
     $this->templateType = $templateType;
     //Sort variables
     $this->listCurrentSort = isset($sortBy) && trim($sortBy) != '' ? trim($sortBy) : $this->listDefaultSort;
     $this->listCurrentSortAbs = abs($this->listCurrentSort);
     $this->listNewCurrentSort = -$this->listCurrentSort;
     //Get access entities
     $this->setupEntityAccess();
 }
开发者ID:ndumisom,项目名称:ANYC-Project,代码行数:67,代码来源:profile.admin.class.php

示例3: Whip

 function __construct($id = 0, $templateType = 'list', $pageSize = 10, $currentPage = 1, $sortBy = '3')
 {
     parent::__construct();
     global $backend_ID;
     $this->backend_ID = $backend_ID;
     /*****************************/
     /* START: Edit per class file 
        /*****************************/
     $this->encrypt_key = '4F4DhS2ardmore3DHekS9r4d';
     $this->adminId = $id;
     $this->id = $id;
     $this->tablePrefix = 'anc_';
     $this->tableName = $this->tablePrefix . 'cw_preview_ass';
     $this->idName = 'id_mp_mpl_govreview_ass';
     //Web variables
     $this->webUrl = "";
     //List page variables
     $this->listFileName = 'cwgovernancereview-list';
     $this->listContentTemplate = 'cwgovernancereview-list.tpl';
     $this->listHtmlPageTitle = 'Chief Whip Governance review';
     $this->listPageTitle = ' Chief Whip Governance review';
     $this->listDefaultSort = "2";
     $this->entityName = 'Councillor Assessment';
     $this->entityAliasName = 'Councillor Assessment';
     $this->entityStatusFieldName = 'administrator_status';
     $this->insertButtonName = '';
     //Edit page variables
     $this->editFileName = 'cwgovernancereview-edit';
     $this->editHtmlPageTitle = 'Chief Whip Governance review';
     $this->editPageTitle = 'Chief Whip Governance review';
     $this->editContentTemplate = 'cwpreview-edit.tpl';
     $this->insertHtmlPageTitle = 'Chief Whip Governance review';
     $this->insertPageTitle = 'Chief Whip Governance review';
     $this->editPanelHeading = 'To be Completed by the Chief Whip (Compulsory)';
     $this->enabledatePicker = true;
     //Edit buttons
     $this->insertAsNewEnabled = 0;
     //Search
     $this->searchEnabled = 1;
     //List action variables
     $this->enableDelete = false;
     $this->enableView = false;
     $this->enableEdit = true;
     //List Column Names
     $this->listColumns = array('ID', 'Councillor Name', 'Municipality', 'Status', 'Score', 'Assessment Date', 'Last Modification Date');
     //List query
     $this->listSql = "SELECT DISTINCT\r\n          anc_mp_mpl_govreview_ass.id_mp_mpl_govreview_ass as 'id',\r\n          CONCAT(anc_administrator.first_name, ' ', anc_administrator.last_name) AS councillor_name,\r\n          anc_municipality.municipality_name AS 'municipality_name',\r\n          anc_mp_mpl_govreview_ass.mp_mpl_status as 'mp_mpl_status',\r\n          anc_mp_mpl_govreview_ass.mp_mpl_score 'mp_mpl_score',\r\n          anc_mp_mpl_govreview_ass.cdate as 'cdate',\r\n          anc_mp_mpl_govreview_ass.mdate as 'mdate'\r\n        FROM\r\n          anc_mp_mpl_govreview_ass INNER JOIN anc_profile ON anc_profile.id_administrator =  anc_mp_mpl_govreview_ass.id_administrator\r\n          INNER JOIN anc_administrator ON anc_profile.id_administrator =  anc_administrator.id_administrator\r\n          INNER JOIN anc_municipality ON anc_profile.id_municipality =  anc_municipality.id_municipality\r\n        WHERE\r\n          anc_profile.id_chiefwhip = " . mysql_escape_string($this->id);
     //echo $this->listSql;
     //Allow the (normal) user to view all non super users only by setting where clause
     /* if( $_SESSION[$backend_ID]['ADMIN_TYPE'] == 'user' ) {
          $this->setListFilter( 'user' );  
                            
        }  */
     //Edit form fields
     $this->formFieldNames = array('id_administrator', 'id_mp_mpl_govreview_ass', 'cw_preview', 'cw_ovpefrating');
     //Page size
     $this->pageSize = isset($pageSize) && $pageSize != '' ? $pageSize : 25;
     /*****************************/
     /* END: Edit per class file 
        /*****************************/
     //Pagination variables
     $this->currentPage = $currentPage;
     //Template type variables
     $this->templateType = $templateType;
     //Sort variables
     $this->listCurrentSort = isset($sortBy) && trim($sortBy) != '' ? trim($sortBy) : $this->listDefaultSort;
     $this->listCurrentSortAbs = abs($this->listCurrentSort);
     $this->listNewCurrentSort = -$this->listCurrentSort;
     //Get access entities
     //$this->setupEntityAccess();
 }
开发者ID:ndumisom,项目名称:ANYC-Project,代码行数:71,代码来源:cwgovernancereview.admin.class.php

示例4: __construct

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

示例5: array

 function __construct($id = 0, $templateType = 'list', $pageSize = 25, $currentPage = 1, $sortBy = '', $filters = array(), $getVariables = array())
 {
     parent::__construct();
     /*****************************/
     /* START: Edit per class file 
     		/*****************************/
     $this->id = $id;
     $this->tableName = 'med_service';
     $this->idName = 'id_service';
     //Web variables
     $this->webUrl = "";
     //List page variables
     $this->listFileName = 'service-list';
     $this->listContentTemplate = 'service-list.tpl';
     $this->listHtmlPageTitle = 'Liste des Services';
     $this->listPageTitle = 'Liste des Services';
     $this->listDefaultSort = "1";
     $this->entityName = 'Service';
     $this->entityAliasName = 'service';
     $this->entityStatusFieldName = 'service_status';
     $this->insertButtonName = 'Insert new Service';
     //Edit page variables
     $this->editFileName = 'service-edit';
     $this->editHtmlPageTitle = 'Modifier un Service';
     $this->editPageTitle = 'Modifier un Service';
     $this->editContentTemplate = 'service-edit.tpl';
     $this->insertHtmlPageTitle = 'Ajout d\'un Service';
     $this->insertPageTitle = 'Ajout d\'un Service';
     $this->editPanelHeading = 'Service Details';
     //Export Data
     $this->enableExportToCSV = false;
     $this->exportPageTitle = "Service";
     $this->exportColumns = array('ID', 'Désignation', 'Status', 'Creation Date', 'Modified Date');
     $this->exportListSql = "SELECT DISTINCT\r\n\t\t\t\t{$this->tableName}.id_service AS 'id',\r\n\t\t\t\t{$this->tableName}.service_designation AS 'service_designation',\r\n\t\t\t\t{$this->tableName}.service_status AS 'service_status',\r\n\t\t\t\t{$this->tableName}.cdate AS 'cdate',\r\n\t\t\t\t{$this->tableName}.mdate AS 'mdate'\r\n\t\t\tFROM \r\n\t\t\t\t{$this->tableName}";
     //Edit buttons
     $this->insertAsNewEnabled = 1;
     //Search
     $this->searchEnabled = 1;
     //List action variables
     $this->enableDelete = true;
     $this->enableEdit = true;
     //List Column Names
     $this->listColumns = array('ID', 'Désignation', 'Status', 'Creation Date', 'Modified Date');
     //List query
     $this->listSql = "SELECT DISTINCT\r\n\t\t\t\t{$this->tableName}.id_service AS 'id',\r\n\t\t\t\t{$this->tableName}.service_designation AS 'service_designation',\r\n\t\t\t\t{$this->tableName}.service_status AS 'service_status',\r\n\t\t\t\t{$this->tableName}.cdate AS 'cdate',\r\n\t\t\t\t{$this->tableName}.mdate AS 'mdate'\r\n\t\t\tFROM \r\n\t\t\t\t{$this->tableName}";
     //Edit form fields
     $this->formFieldNames = array('id_service', 'service_designation', 'service_status');
     //Page size
     $this->pageSize = isset($pageSize) && $pageSize != '' ? $pageSize : 50;
     /*****************************/
     /* END: Edit per class file 
     		/*****************************/
     //Pagination variables
     $this->currentPage = $currentPage;
     //Template type variables
     $this->templateType = $templateType;
     //Sort variables
     $this->listCurrentSort = isset($sortBy) && trim($sortBy) != '' ? trim($sortBy) : $this->listDefaultSort;
     $this->listCurrentSortAbs = abs($this->listCurrentSort);
     $this->listNewCurrentSort = -$this->listCurrentSort;
     $this->listFilterData = $filters;
     $this->addGetVariables($getVariables);
 }
开发者ID:ndumisom,项目名称:ANYC-Project,代码行数:63,代码来源:service.admin.class.php


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