本文整理汇总了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
}