Ejemplo n.º 1
0
 /**
  * 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('Job Id'), 'required' => true), 'hrjob_contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Contact ID'), 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.contact_id', 'headerPattern' => '', 'dataPattern' => '', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'hrjob_position' => array('name' => 'position', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Position'), 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE, 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.position', 'headerPattern' => '', 'dataPattern' => ''), 'hrjob_title' => array('name' => 'title', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Title'), 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE, 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.title', 'headerPattern' => '', 'dataPattern' => ''), 'funding_notes' => array('name' => 'funding_notes', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Funding Notes'), 'export' => true, 'import' => true), 'hrjob_contract_type' => array('name' => 'contract_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Contract Type'), 'maxlength' => 63, 'size' => CRM_Utils_Type::BIG, 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.contract_type', 'headerPattern' => '', 'dataPattern' => '', 'pseudoconstant' => array('optionGroupName' => 'hrjob_contract_type')), 'hrjob_period_type' => array('name' => 'period_type', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Contract Duration'), 'export' => true, 'maxlength' => 63, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_hrjob.period_type', 'headerPattern' => '', 'dataPattern' => '', 'pseudoconstant' => array('callback' => 'CRM_HRJob_SelectValues::periodType')), 'hrjob_period_start_date' => array('name' => 'period_start_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Contract Start Date'), 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.period_start_date', 'headerPattern' => '', 'dataPattern' => ''), 'hrjob_period_end_date' => array('name' => 'period_end_date', 'type' => CRM_Utils_Type::T_DATE, 'title' => ts('Contract End Date'), 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.period_end_date', 'headerPattern' => '', 'dataPattern' => ''), 'hrjob_notice_amount' => array('name' => 'notice_amount', 'type' => CRM_Utils_Type::T_FLOAT, 'title' => ts('Notice Period from Employer (Amount)'), 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.notice_amount', 'headerPattern' => '', 'dataPattern' => ''), 'hrjob_notice_unit' => array('name' => 'notice_unit', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Notice Period from Employer (Unit)'), 'export' => true, 'maxlength' => 63, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_hrjob.notice_unit', 'headerPattern' => '', 'dataPattern' => '', 'pseudoconstant' => array('callback' => 'CRM_HRJob_SelectValues::commonUnit')), 'hrjob_notice_amount_employee' => array('name' => 'notice_amount_employee', 'type' => CRM_Utils_Type::T_FLOAT, 'title' => ts('Notice Period from Employee (Amount)'), 'import' => true, 'where' => 'civicrm_hrjob.notice_amount_employee', 'headerPattern' => '', 'dataPattern' => '', 'export' => true), 'hrjob_notice_unit_employee' => array('name' => 'notice_unit_employee', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Notice Period from Employee (Unit)'), 'maxlength' => 63, 'size' => CRM_Utils_Type::BIG, 'import' => true, 'where' => 'civicrm_hrjob.notice_unit_employee', 'headerPattern' => '', 'dataPattern' => '', 'export' => true, 'pseudoconstant' => array('callback' => 'CRM_HRJob_SelectValues::commonUnit')), 'hrjob_location' => array('name' => 'location', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Normal Place of Work'), 'maxlength' => 127, 'size' => CRM_Utils_Type::HUGE, 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.location', 'headerPattern' => '', 'dataPattern' => '', 'pseudoconstant' => array('optionGroupName' => 'hrjob_location')), 'hrjob_is_primary' => array('name' => 'is_primary', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Job Is Primary'), 'export' => true, 'import' => true, 'where' => 'civicrm_hrjob.is_primary', 'headerPattern' => '', 'dataPattern' => ''));
     }
     return self::$_fields;
 }