本文整理汇总了PHP中DataManager::find方法的典型用法代码示例。如果您正苦于以下问题:PHP DataManager::find方法的具体用法?PHP DataManager::find怎么用?PHP DataManager::find使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager
的用法示例。
在下文中一共展示了DataManager::find方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: find
function find($arguments = null) {
if (isset ( $this ) && instance_of ( $this, 'Widgets' )) {
return parent::find ( $arguments );
} else {
return Widgets::instance ()->find ( $arguments );
}
}
示例2: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or ContactWidgetOptions objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'ContactWidgetOptions')) {
return parent::find($arguments);
} else {
return ContactWidgetOptions::instance()->find($arguments);
}
// if
}
示例3: frosso_estimated_cost_handle_on_project_overview_sidebars
/**
* Add sidebars to project overview page
*
* @param array $sidebars
* @param Project $project
* @param User $user
*/
function frosso_estimated_cost_handle_on_project_overview_sidebars(&$sidebars, Project &$project, User &$user)
{
if (($user->canUseReports() || $project->isLeader($user)) && $project->canEdit($user)) {
$arguments = array('conditions' => array('project_id = ? AND type = ? AND state >= ? AND visibility >= ? AND completed_on IS NULL', $project->getId(), 'Milestone', STATE_VISIBLE, VISIBILITY_NORMAL));
$milestones = DataManager::find($arguments, TABLE_PREFIX . 'project_objects', DataManager::CLASS_NAME_FROM_TABLE, 'RemediaMilestone');
if (is_foreachable($milestones)) {
$result = array();
$view = SmartyForAngie::getInstance()->createTemplate(AngieApplication::getViewPath('eta_project_sidebar', 'sidebar', FROSSO_EC_MODULE, AngieApplication::INTERFACE_DEFAULT));
$view->assign(array('milestones' => $milestones, 'logged_user' => $user));
$sidebars[] = array('label' => lang('ETA for this project'), 'is_important' => false, 'id' => 'project_milestones_complete', 'body' => $view->fetch());
}
}
}
示例4: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or MemberPropertyMembers objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'MemberPropertyMembers')) {
return parent::find($arguments);
} else {
return MemberPropertyMembers::instance()->find($arguments);
}
// if
}
示例5: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or ReportConditions objects
* @throws DBQueryError
*/
function find($arguments = null) {
if(isset($this) && instance_of($this, 'ReportConditions')) {
return parent::find($arguments);
} else {
return ReportConditions::instance()->find($arguments);
} // if
} // find
示例6: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or more ProjectTicketSubscriptions objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'ProjectTicketSubscriptions')) {
return parent::find($arguments);
} else {
return ProjectTicketSubscriptions::instance()->find($arguments);
}
// if
}
示例7: find
/**
* Do a SELECT query over database with specified arguments
*
* This function can return single instance or array of instances that match
* requirements provided in $arguments associative array
*
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit - number of rows that need to be returned
*
* @return mixed
* @throws DBQueryError
*/
function find($arguments = null)
{
return DataManager::find($arguments, TABLE_PREFIX . 'incoming_mail_attachments', 'IncomingMailAttachment');
}
示例8: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or DimensionMemberAssociations objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'DimensionMemberAssociations')) {
return parent::find($arguments);
} else {
return DimensionMemberAssociations::instance()->find($arguments);
}
// if
}
示例9: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or ApplicationLogs objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'ApplicationLogs')) {
return parent::find($arguments);
} else {
return ApplicationLogs::instance()->find($arguments);
//$instance =& ApplicationLogs::instance();
//return $instance->find($arguments);
}
// if
}
示例10: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or QueuedEmails objects
* @throws DBQueryError
*/
function find($arguments = null) {
if(isset($this) && instance_of($this, 'QueuedEmails')) {
return parent::find($arguments);
} else {
return QueuedEmails::instance()->find($arguments);
//$instance =& QueuedEmails::instance();
//return $instance->find($arguments);
} // if
} // find
示例11: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or more TemplateObject objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'TemplateParameters')) {
return parent::find($arguments);
} else {
return TemplateParameters::instance()->find($arguments);
}
// if
}
示例12: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or PermissionGroups objects
* @throws DBQueryError
*/
function find($arguments = null) {
if(isset($this) && instance_of($this, 'PermissionGroups')) {
return parent::find($arguments);
} else {
return PermissionGroups::instance()->find($arguments);
} // if
} // find
示例13: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or AdministrationTools objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'AdministrationTools')) {
return parent::find($arguments);
} else {
return AdministrationTools::instance()->find($arguments);
//$instance =& AdministrationTools::instance();
//return $instance->find($arguments);
}
// if
}
示例14: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or DimensionObjectTypeOptions objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'DimensionObjectTypeOptions')) {
return parent::find($arguments);
} else {
return DimensionObjectTypeOptions::instance()->find($arguments);
}
// if
}
示例15: find
/**
* Do a SELECT query over database with specified arguments
*
* @access public
* @param array $arguments Array of query arguments. Fields:
*
* - one - select first row
* - conditions - additional conditions
* - order - order by string
* - offset - limit offset, valid only if limit is present
* - limit
*
* @return one or MailAccounts objects
* @throws DBQueryError
*/
function find($arguments = null)
{
if (isset($this) && instance_of($this, 'ExternalCalendarUsers')) {
return parent::find($arguments);
} else {
return ExternalCalendarUsers::instance()->find($arguments);
//$instance =& MailAccounts::instance();
//return $instance->find($arguments);
}
// if
}