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


PHP DataManager::find方法代码示例

本文整理汇总了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 );
		}
	}
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:7,代码来源:BaseWidgets.class.php

示例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
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:24,代码来源:BaseContactWidgetOptions.class.php

示例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());
        }
    }
}
开发者ID:NaszvadiG,项目名称:ACModules,代码行数:20,代码来源:on_project_overview_sidebars.php

示例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
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:24,代码来源:BaseMemberPropertyMembers.class.php

示例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
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:22,代码来源:BaseReportConditions.class.php

示例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
 }
开发者ID:bklein01,项目名称:Project-Pier,代码行数:24,代码来源:BaseProjectTicketSubscriptions.class.php

示例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');
 }
开发者ID:NaszvadiG,项目名称:activecollab_loc,代码行数:21,代码来源:BaseIncomingMailAttachments.class.php

示例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
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:24,代码来源:BaseDimensionMemberAssociations.class.php

示例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
 }
开发者ID:bklein01,项目名称:Project-Pier,代码行数:26,代码来源:BaseApplicationLogs.class.php

示例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
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:24,代码来源:BaseQueuedEmails.class.php

示例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
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:24,代码来源:BaseTemplateParameters.class.php

示例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
开发者ID:Jtgadbois,项目名称:Pedadida,代码行数:22,代码来源:BasePermissionGroups.class.php

示例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
 }
开发者ID:469306621,项目名称:Languages,代码行数:26,代码来源:BaseAdministrationTools.class.php

示例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
 }
开发者ID:abhinay100,项目名称:feng_app,代码行数:24,代码来源:BaseDimensionObjectTypeOptions.class.php

示例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
 }
开发者ID:abhinay100,项目名称:fengoffice_app,代码行数:26,代码来源:BaseExternalCalendarUsers.class.php


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