Ejemplo n.º 1
0
 public function get_image_edit_link()
 {
     $count = db::count('image_size', 'isid')->filter_field('fid', $this->fid)->execute();
     return node::create('a', array('href' => '/cms/module/' . image_size::get_module_id() . '/!/fid/' . $this->fid), (int) $count . ' image sizes');
 }
Ejemplo n.º 2
0
 /**
  * @return mixed
  */
 public static function get_count()
 {
     $class = get_called_class();
     $return = new $class();
     return _db::count($class, $return->get_primary_key_name())->execute();
 }