Ejemplo n.º 1
0
 /**
  * Find one specific record
  *
  * @access public
  * @param array $arguments
  * @return Contact 
  */
 function findOne($arguments = null)
 {
     if (isset($this) && instance_of($this, 'Contacts')) {
         return parent::findOne($arguments);
     } else {
         return Contacts::instance()->findOne($arguments);
     }
     // if
 }
Ejemplo n.º 2
0
 /**
  * Find one specific record
  *
  * @access public
  * @param array $arguments
  * @return ProjectFile
  */
 function findOne($arguments = null)
 {
     if (isset($this) && instance_of($this, 'ProjectFiles')) {
         return parent::findOne($arguments);
     } else {
         return ProjectFiles::instance()->findOne($arguments);
     }
     // if
 }
	/**
	 * Find one specific record
	 *
	 * @access public
	 * @param array $arguments
	 * @return ProjectMilestone
	 */
	function findOne($arguments = null) {
		if(isset($this) && instance_of($this, 'ProjectMilestones')) {
			return parent::findOne($arguments);
		} else {
			return ProjectMilestones::instance()->findOne($arguments);
			//$instance =& ProjectMilestones::instance();
			//return $instance->findOne($arguments);
		} // if
	} // findOne
 /**
  * Find one specific record
  *
  * @access public
  * @param array $arguments
  * @return TemplateTask
  */
 function findOne($arguments = null)
 {
     if (isset($this) && instance_of($this, 'TemplateTasks')) {
         return parent::findOne($arguments);
     } else {
         return TemplateTasks::instance()->findOne($arguments);
     }
     // if
 }
Ejemplo n.º 5
0
 /**
 * Find one specific record
 *
 * @access public
 * @param array $arguments
 * @return Billing 
 */
 function findOne($arguments = null) {
   if(isset($this) && instance_of($this, 'Billings')) {
     return parent::findOne($arguments);
   } else {
     return Billings::instance()->findOne($arguments);
   } // if
 } // findOne