Webenq_Model_Category

Manage categories

package Webenq_Models
author Jaap-Andre de Hoop <j.dehoop@nivocer.com
subpackage
version SVN: $Id: Builder.php,v 1.2 2011/07/12 13:39:03 bart Exp $

 Methods

Sets the category text for a given language

addCategoryText(string $language, $text) : \Webenq_Model_Category
fluent This method is part of a fluent interface and will return the same instance

Parameters

$language

string

The language to set the title for

$text

Returns

Sets the category texts for every language

addCategoryTexts(array $texts) : \Webenq_Model_Category
fluent This method is part of a fluent interface and will return the same instance

Parameters

$texts

Returns

fromArray()

fromArray(array $array, $deep) 

Parameters

$array

$deep

Get categories (all ordered by weight or one specific)

getCategories(string $id) : \Ambigous
Static

Parameters

$id

string

Returns

\Ambigous

Gets the category text in the given, current or preferred language.

getCategoryText(string $language) : string

Returns an empty string if nothing was found.

Parameters

$language

string

Returns

string

setTableDefinition()

setTableDefinition() 
Inherited
inherited_from \Webenq_Model_Base_Category::setTableDefinition()

setUp()

setUp() 
Inherited
inherited_from \Webenq_Model_Base_Category::setUp()