Пример #1
0
 public function getNum($escaped = false)
 {
     if ($escaped) {
         return preg_replace('/[\\/\\,\\+]/', ';', parent::getNum());
     } else {
         return parent::getNum();
     }
 }
Пример #2
0
 public function delete(PropelPDO $con = null)
 {
     // delete course_discipline_assoc
     // delete course_instructor_assoc
     // delete course_detail
     // delete course_rating_data
     // delete auto_course_rating_data
     parent::delete($con);
 }
Пример #3
0
 /**
  * Overrides the propel generated getCourseComments by imposing the results to be
  * retrieved ordered by import_dt
  * @see lib/model/om/BaseCourse#getCourseComments($criteria, $con)
  */
 public function getCourseComments($criteria = null, PropelPDO $con = null, $fetchUnapproved = false)
 {
     if ($criteria === null) {
         $criteria = new Criteria(CoursePeer::DATABASE_NAME);
     } elseif ($criteria instanceof Criteria) {
         $criteria = clone $criteria;
     }
     if (!$fetchUnapproved) {
         $crit = $criteria->getNewCriterion(CourseCommentPeer::APPROVED, 1);
         $criteria->addAnd($crit);
     }
     $criteria->addDescendingOrderByColumn(CourseCommentPeer::INPUT_DT);
     return parent::getCourseComments($criteria, $con);
 }
Пример #4
0
 /**
  * Returns a peer instance associated with this om.
  *
  * Since Peer classes are not to have any instance attributes, this method returns the
  * same instance for all member of this class. The method could therefore
  * be static, but this would prevent one from overriding the behavior.
  *
  * @return     CoursePeer
  */
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new CoursePeer();
     }
     return self::$peer;
 }