本文整理匯總了PHP中DataManager::findById方法的典型用法代碼示例。如果您正苦於以下問題:PHP DataManager::findById方法的具體用法?PHP DataManager::findById怎麽用?PHP DataManager::findById使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DataManager
的用法示例。
在下文中一共展示了DataManager::findById方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return DimensionObjectTypeHierarchy
*/
function findById($id, $force_reload = false) {
if(isset($this) && instance_of($this, 'DimensionObjectTypeHierarchies')) {
return parent::findById($id, $force_reload);
} else {
return DimensionObjectTypeHierarchies::instance()->findById($id, $force_reload);
} // if
} // findById
示例2: findById
/**
* Return object by ID
*
* @param mixed $id
* @return IncomingMailbox
*/
function findById($id)
{
return DataManager::findById($id, TABLE_PREFIX . 'incoming_mailboxes', 'IncomingMailbox');
}
示例3: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return ProjectChartParam
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'ProjectChartParams')) {
return parent::findById($id, $force_reload);
} else {
return ProjectChartParams::instance()->findById($id, $force_reload);
//$instance =& ProjectChartParams::instance();
//return $instance->findById($id, $force_reload);
}
// if
}
示例4: findById
/**
* Return object by ID
*
* @param mixed $id
* @return DocumentCategory
*/
function findById($id)
{
return DataManager::findById($id, TABLE_PREFIX . 'document_categories', 'DocumentCategory');
}
示例5: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return ConfigOption
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'UserWsConfigOptionValues')) {
return parent::findById($id, $force_reload);
} else {
return UserWsConfigOptionValues::instance()->findById($id, $force_reload);
//$instance =& ConfigOptions::instance();
//return $instance->findById($id, $force_reload);
}
// if
}
示例6: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return MemberPropertyMember
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'MemberPropertyMembers')) {
return parent::findById($id, $force_reload);
} else {
return MemberPropertyMembers::instance()->findById($id, $force_reload);
}
// if
}
示例7: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return ImType
*/
function findById($id, $force_reload = false) {
if(isset($this) && instance_of($this, 'WebpageTypes')) {
return parent::findById($id, $force_reload);
} else {
return WebpageTypes::instance()->findById($id, $force_reload);
} // if
} // findById
示例8: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return PermissionGroup
*/
function findById($id, $force_reload = false) {
if(isset($this) && instance_of($this, 'PermissionGroups')) {
return parent::findById($id, $force_reload);
} else {
return PermissionGroups::instance()->findById($id, $force_reload);
} // if
} // findById
示例9: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return TemplateObject
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'TemplateParameters')) {
return parent::findById($id, $force_reload);
} else {
return TemplateParameters::instance()->findById($id, $force_reload);
}
// if
}
示例10: findById
/**
* Return object by ID
*
* @param mixed $id
* @return IncomingMailAttachment
*/
function findById($id)
{
return DataManager::findById($id, TABLE_PREFIX . 'incoming_mail_attachments', 'IncomingMailAttachment');
}
示例11: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return AdministrationTool
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'AdministrationTools')) {
return parent::findById($id, $force_reload);
} else {
return AdministrationTools::instance()->findById($id, $force_reload);
//$instance =& AdministrationTools::instance();
//return $instance->findById($id, $force_reload);
}
// if
}
示例12: findById
/**
* Return object by ID
*
* @param mixed $id
* @return Module
*/
function findById($id)
{
return DataManager::findById($id, TABLE_PREFIX . 'modules', 'Module');
}
示例13: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return ProjectTicketSubscription
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'ProjectTicketSubscriptions')) {
return parent::findById($id, $force_reload);
} else {
return ProjectTicketSubscriptions::instance()->findById($id, $force_reload);
}
// if
}
示例14: findById
/**
* Return object by ID
*
* @param mixed $id
* @return CommitProjectObject
*/
function findById($id)
{
return DataManager::findById($id, TABLE_PREFIX . 'source_users', 'SourceUser');
}
示例15: findById
/**
* Return object by its PK value
*
* @access public
* @param mixed $id
* @param boolean $force_reload If true cache will be skipped and data will be loaded from database
* @return WorkspaceBilling
*/
function findById($id, $force_reload = false)
{
if (isset($this) && instance_of($this, 'WorkspaceBillings')) {
return parent::findById($id, $force_reload);
} else {
return WorkspaceBillings::instance()->findById($id, $force_reload);
//$instance =& WorkspaceBillings::instance();
//return $instance->findById($id, $force_reload);
}
// if
}