/** * returns all the column names of this table * * @access public * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Hours Location Id'), 'required' => true), 'location' => array('name' => 'location', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Location'), 'maxlength' => 63, 'export' => true, 'where' => 'civicrm_hrhours_location.location', 'headerPattern' => '', 'dataPattern' => ''), 'standard_hours' => array('name' => 'standard_hours', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Standard Hours'), 'export' => true, 'where' => 'civicrm_hrhours_location.standard_hours', 'headerPattern' => '', 'dataPattern' => ''), 'periodicity' => array('name' => 'periodicity', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Periodicity'), 'maxlength' => 63, 'export' => true, 'where' => 'civicrm_hrhours_location.periodicity', 'headerPattern' => '', 'dataPattern' => ''), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Hours Location Is Active'), 'default' => '1')); } return self::$_fields; }