<?php

  /**
  * 
  * @author Marcos Saiz <marcos.saiz@opengoo.org>
  */
  class UserWsConfigCategories extends BaseUserWsConfigCategories {
    
    /**
    * Return all categories with possibility to exclude system categories (only account owner can see them)
    *
    * @param boolean $include_system_categories
    * @return array
    */
    function getAll($include_system_categories = false) {
      $conditions = $include_system_categories ? null : array('`is_system` = ?', false);
      return self::findAll(array(
        'conditions' => $conditions,
        'order' => '`category_order`'
      )); // array
    } // getAll
    
  } // UserWsConfigCategories 

?>