Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/models/axo.php | ||
---|---|---|
*/
|
||
protected $table_names_plural = FALSE;
|
||
|
||
/**
|
||
* Returns all section values
|
||
*
|
||
* @author Michal Kliment
|
||
* @return type
|
||
*/
|
||
public static function get_section_values()
|
||
{
|
||
$axo_model = new Axo_Model();
|
||
|
||
$axos = arr::sort(
|
||
array_unique(
|
||
arr::from_objects(
|
||
$axo_model->get_all_values(),
|
||
'section_value'
|
||
)
|
||
)
|
||
);
|
||
|
||
return $axos;
|
||
}
|
||
|
||
/**
|
||
* Returns all values
|
||
*
|
||
* @author Michal Kliment
|
||
* @return type
|
||
*/
|
||
public static function get_values()
|
||
{
|
||
$axo_model = new Axo_Model();
|
||
|
||
$axos = arr::sort(
|
||
array_unique(
|
||
arr::from_objects(
|
||
$axo_model->get_all_values(),
|
||
'value'
|
||
)
|
||
)
|
||
);
|
||
|
||
return $axos;
|
||
}
|
||
|
||
/**
|
||
* Returns all AXO values
|
||
*
|
||
* @author Michal Kliment
|
||
* @return type
|
||
*/
|
||
public function get_all_values()
|
||
{
|
||
return $this->db->query("
|
||
SELECT * FROM axo
|
||
ORDER BY section_value
|
||
");
|
||
}
|
||
|
||
/**
|
||
* Gets AXo by ACl
|
||
*
|
Také k dispozici: Unified diff
Release 1.1.0