Ejemplo n.º 1
0
 /**
  * Shorthand getter for news category fields
  *
  * @param string $category_field name without the leading 'category_' prefix
  * @param mixed $default
  * @return mixed data
  */
 public function cat($category_field, $default = null)
 {
     return parent::get('category_' . $category_field, $default);
 }
Ejemplo n.º 2
0
 /**
  * Simple getter - $pref_name is not parsed (no multidimensional arrays support), alias of {@link e_model::get()}
  * This is the prefered (performance wise) method when simple preference is retrieved
  *
  * @param string $pref_name
  * @param mixed $default
  * @return mixed
  */
 public function get($pref_name, $default = null)
 {
     return parent::get((string) $pref_name, $default);
 }