Ejemplo n.º 1
0
 public function scopes()
 {
     $table = $this->getTableAlias();
     return array('published' => array('condition' => $table . '.status = ' . L::r_ruitem('publicationStatus', 'published') . ' and ' . $table . '.publicated < now()', 'order' => $table . '.publicated desc'));
 }
Ejemplo n.º 2
0
 public function scopes()
 {
     $db = $this->getDbConnection();
     $alias = $db->quoteColumnName($this->getTableAlias());
     return array('published' => array('condition' => $alias . '.status = ' . L::r_ruitem('publicationStatus', 'published') . ' and ' . $alias . '.publicated < now()', 'order' => $alias . '.publicated desc'));
 }