Quick search:

HoursCategoryEditDetailsPage
Country
Employee
EmployeeIndexPage
EmployeePropertyHoursPage
EmployeePropertyHoursPart
EmployeeSaveAction
Gender
Hours
HoursCategory
IndexPage
MenuPart
getButtonsList

	/** Add a button for searching by name for Hours referring to the edited Category
	*/ 
	function getButtonsList() {
		$list = parent::getButtonsList();
		
		$categoryObj = $this->getRequestedObject();
		$params = array('pntType' => 'Hours'
			, 'pntHandler' => 'SearchPage'
			, 'pntF1' => 'category.name'
			, 'pntF1cmp ' => '~'
			, 'pntF1v1' => $categoryObj->get('name')
			, 'advanced' => 'Search'
			, 'pntRef' => $this->getFootprintId()
			);
		$url = $this->controller->buildUrl($params);
		$list[1][] = $this->getButton('Search Hours', "document.location.href='$url';");
		
		return $list;
	}


}

?>
Copyright (c) MetaClass, 2003-

This code is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Click here for a copy of the license or see http://www.gnu.org/licenses/ .