Exemplo n.º 1
0
 /**
  * Initializes internal state of Article object.
  * @see        parent::__construct()
  */
 public function __construct()
 {
     // Make sure that parent constructor is always invoked, since that
     // is where any default values for this object are set.
     parent::__construct();
 }
Exemplo n.º 2
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     ArticlePeer
  */
 public function getPeer()
 {
     if (self::$peer === null) {
         self::$peer = new ArticlePeer();
     }
     return self::$peer;
 }
Exemplo n.º 3
0
 protected static function buildFieldsList($main_query = false, $mi = 'mi', $format = null, $sort = null, $custom_fields = null)
 {
     if ($main_query) {
         $data_fields_list = array('m.categories', 'm.activities', 'm.article_type');
     } else {
         $data_fields_list = array();
     }
     $base_fields_list = parent::buildFieldsList($main_query, $mi, $format, $sort, $custom_fields);
     return array_merge($base_fields_list, $data_fields_list);
 }