/** * function __construct * <pre> * Initialize the Class ... * </pre> * @param $page_id [INTEGER] value used to initialize the list. * @param $daobj_id [INTEGER] value used to initialize the list. * @param $isForm [INTEGER] value used to initialize the list. * @param $sortBy [STRING] the field name to sort list by * @return [void] */ function __construct($page_id = -1, $daobj_id = -1, $isForm = -1, $sortBy = '') { $searchManager = new RowManager_PageFieldManager(); // 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", $page_id); if ($daobj_id != -1) { $searchManager->setValueByFieldName("daobj_id", $daobj_id); } if ($isForm != -1) { $searchManager->setValueByFieldName("pagefield_isForm", $isForm); } if ($sortBy == '') { $sortBy = 'dafield_id'; } $searchManager->setSortOrder($sortBy); $this->resultSet = $searchManager->find(); }