/** * returns all the column names of this table * * @access public * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('volunteer_need_id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('CiviVolunteer Need ID', array('domain' => 'org.civicrm.volunteer')), 'required' => true), 'volunteer_need_project_id' => array('name' => 'project_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Volunteer_DAO_Project'), 'start_time' => array('name' => 'start_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Start Date and Time', array('domain' => 'org.civicrm.volunteer'))), 'duration' => array('name' => 'duration', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Duration', array('domain' => 'org.civicrm.volunteer'))), 'is_flexible' => array('name' => 'is_flexible', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Flexible', array('domain' => 'org.civicrm.volunteer')), 'required' => true), 'quantity' => array('name' => 'quantity', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Quantity', array('domain' => 'org.civicrm.volunteer')), 'default' => 'NULL'), 'visibility_id' => array('name' => 'visibility_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Visibility', array('domain' => 'org.civicrm.volunteer')), 'default' => 'NULL', 'pseudoconstant' => array('optionGroupName' => 'visibility')), 'role_id' => array('name' => 'role_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Role', array('domain' => 'org.civicrm.volunteer')), 'default' => 'NULL', 'pseudoconstant' => array('optionGroupName' => 'volunteer_role')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled', array('domain' => 'org.civicrm.volunteer')), 'required' => true, 'default' => '1')); } return self::$_fields; }
/** * Returns all the column names of this table * * @return array */ static function &fields() { if (!self::$_fields) { self::$_fields = array('id' => array('name' => 'id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('CiviVolunteer Need ID', array('domain' => 'org.civicrm.volunteer')), 'description' => 'Need Id', 'required' => true), 'project_id' => array('name' => 'project_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to civicrm_volunteer_project table which contains entity_table + entity for each volunteer project (initially civicrm_event + eventID).', 'required' => false, 'FKClassName' => 'CRM_Volunteer_DAO_Project'), 'start_time' => array('name' => 'start_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Start Date and Time', array('domain' => 'org.civicrm.volunteer'))), 'end_time' => array('name' => 'end_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('End Date and Time', array('domain' => 'org.civicrm.volunteer')), 'description' => 'Used for specifying fuzzy dates, e.g., I have a need for 3 hours of volunteer work to be completed between 12/01/2015 and 12/31/2015.'), 'duration' => array('name' => 'duration', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Duration', array('domain' => 'org.civicrm.volunteer')), 'description' => 'Length in minutes of this volunteer time slot.'), 'is_flexible' => array('name' => 'is_flexible', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Flexible', array('domain' => 'org.civicrm.volunteer')), 'description' => 'Boolean indicating whether or not the time and role are flexible. Activities linked to a flexible need indicate that the volunteer is generally available.', 'required' => true), 'quantity' => array('name' => 'quantity', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Quantity', array('domain' => 'org.civicrm.volunteer')), 'description' => 'The number of volunteers needed for this need.', 'default' => 'NULL'), 'visibility_id' => array('name' => 'visibility_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Visibility', array('domain' => 'org.civicrm.volunteer')), 'description' => ' Indicates whether this need is offered on public volunteer signup forms. Implicit FK to option_value row in visibility option_group.', 'default' => 'NULL', 'pseudoconstant' => array('optionGroupName' => 'visibility', 'optionEditPath' => 'civicrm/admin/options/visibility')), 'role_id' => array('name' => 'role_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Role', array('domain' => 'org.civicrm.volunteer')), 'description' => 'The role associated with this need. Implicit FK to option_value row in volunteer_role option_group.', 'default' => 'NULL', 'pseudoconstant' => array('optionGroupName' => 'volunteer_role', 'optionEditPath' => 'civicrm/admin/options/volunteer_role')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Enabled', array('domain' => 'org.civicrm.volunteer')), 'description' => 'Is this need enabled?', 'required' => true, 'default' => '1')); } return self::$_fields; }