Beispiel #1
0
 /**
  * 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('Job ID'), 'description' => 'Job Id', 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Job Domain'), 'description' => 'Which Domain is this scheduled job for', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain', 'pseudoconstant' => array('table' => 'civicrm_domain', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'run_frequency' => array('name' => 'run_frequency', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Frequency'), 'description' => 'Scheduled job run frequency.', 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'default' => 'Daily', 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_Core_SelectValues::getJobFrequency')), 'last_run' => array('name' => 'last_run', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Last Run'), 'description' => 'When was this cron entry last run', 'default' => 'NULL'), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Name'), 'description' => 'Title of the job', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Job Description'), 'description' => 'Description of the job', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'api_entity' => array('name' => 'api_entity', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('API Entity'), 'description' => 'Entity of the job api call', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'api_action' => array('name' => 'api_action', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('API Action'), 'description' => 'Action of the job api call', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parameters' => array('name' => 'parameters', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('API Parameters'), 'description' => 'List of parameters to the command.', 'rows' => 4, 'cols' => 60, 'html' => array('type' => 'TextArea')), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Job Is Active?'), 'description' => 'Is this job active?'));
     }
     return self::$_fields;
 }
Beispiel #2
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, 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain'), 'run_frequency' => array('name' => 'run_frequency', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Run Frequency'), 'default' => 'Daily', 'enumValues' => 'Hourly, Daily, Always'), 'last_run' => array('name' => 'last_run', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Last Run'), 'default' => 'NULL'), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'api_entity' => array('name' => 'api_entity', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Api Entity'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'api_action' => array('name' => 'api_action', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Api Action'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'parameters' => array('name' => 'parameters', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Parameters'), 'rows' => 4, 'cols' => 60), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN));
     }
     return self::$_fields;
 }