/** * 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 ProjectFileRevision */ function findById($id, $force_reload = false) { if (isset($this) && instance_of($this, 'ProjectFileRevisions')) { return parent::findById($id, $force_reload); } else { return ProjectFileRevisions::instance()->findById($id, $force_reload); //$instance =& ProjectFileRevisions::instance(); //return $instance->findById($id, $force_reload); } // if }
/** * 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 Comment */ function findById($id, $force_reload = false) { if (isset($this) && instance_of($this, 'Comments')) { return parent::findById($id, $force_reload); } else { return Comments::instance()->findById($id, $force_reload); //$instance =& Comments::instance(); //return $instance->findById($id, $force_reload); } // if }
/** * 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 ProjectChart */ function findById($id, $force_reload = false) { if(isset($this) && instance_of($this, 'ProjectCharts')) { return parent::findById($id, $force_reload); } else { return ProjectCharts::instance()->findById($id, $force_reload); } // if } // findById