/** * 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('Queue ID'), 'required' => true), 'queue_name' => array('name' => 'queue_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Queue Name'), 'description' => 'Name of the queue which includes this item', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG, 'html' => array('type' => 'Text')), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'required' => true, 'html' => array('type' => 'Text')), 'submit_time' => array('name' => 'submit_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Submit Time'), 'description' => 'date on which this item was submitted to the queue', 'required' => true, 'html' => array('type' => 'Select Date')), 'release_time' => array('name' => 'release_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Release Time'), 'description' => 'date on which this job becomes available; null if ASAP', 'html' => array('type' => 'Select Date')), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Queue item datas'), 'description' => 'Serialized queue')); } return self::$_fields; }
/** * 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), 'queue_name' => array('name' => 'queue_name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Queue Name'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight'), 'required' => true), 'submit_time' => array('name' => 'submit_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Submit Time'), 'required' => true), 'release_time' => array('name' => 'release_time', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Release Time')), 'data' => array('name' => 'data', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Queue item datas'), 'rows' => 8, 'cols' => 60)); } return self::$_fields; }