/** * function __construct * <pre> * Initialize the Class ... * </pre> * @param $pageID [INTEGER] The ID of the Page we are getting labels for * @param $key [STRING] The label key we are searching for * @param $languageID [INTEGER] the ID of the language of labels we are requesting * @param $sortBy [STRING] the field name to sort list by * @return [void] */ function __construct($pageID = '', $key = '', $languageID = '', $sortBy = '') { $searchManager = new RowManager_MultilingualLabelManager(); // NOTE: if you need to narrow the field of the search then uncommnet // the following and set the proper search criteria. $searchManager->setValueByFieldName('page_id', $pageID); $searchManager->setValueByFieldName('label_key', $key); $searchManager->setValueByFieldName('language_id', $languageID); $searchManager->setSortOrder($sortBy); $this->resultSet = $searchManager->find(); }