예제 #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, 'description' => 'Job log entry Id', 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, '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_time' => array('name' => 'run_time', 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Run Time'), 'description' => 'Log entry date'), 'job_id' => array('name' => 'job_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'Pointer to job id - not a FK though, just for logging purposes'), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'description' => 'Title of the job', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'command' => array('name' => 'command', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Command'), 'description' => 'Full path to file containing job script', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'description' => array('name' => 'description', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Description'), 'description' => 'Title line of log entry', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Data'), 'description' => 'Potential extended data for specific job run (e.g. tracebacks).'));
     }
     return self::$_fields;
 }
예제 #2
0
파일: JobLog.php 프로젝트: hguru/224Civi
 /**
  * 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_time' => array('name' => 'run_time', 'type' => CRM_Utils_Type::T_TIMESTAMP, 'title' => ts('Run Time')), 'job_id' => array('name' => 'job_id', 'type' => CRM_Utils_Type::T_INT), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Name'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'command' => array('name' => 'command', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Command'), '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), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Data')));
     }
     return self::$_fields;
 }