示例#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('DashletID'), 'required' => true), 'domain_id' => array('name' => 'domain_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Dashlet Domain'), 'description' => 'Domain for dashboard', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Domain', 'pseudoconstant' => array('table' => 'civicrm_domain', 'keyColumn' => 'id', 'labelColumn' => 'name')), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Dashlet Name'), 'description' => 'Internal name of dashlet.', 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Dashlet Title'), 'description' => 'dashlet title', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Dashlet URL'), 'description' => 'url in case of external dashlet', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission' => array('name' => 'permission', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Dashlet Permission'), 'description' => 'Permission for the dashlet', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission_operator' => array('name' => 'permission_operator', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Dashlet Permission Operator'), 'description' => 'Permission Operator', 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR), 'column_no' => array('name' => 'column_no', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Dashlet Column'), 'description' => 'column no for this dashlet'), 'is_minimized' => array('name' => 'is_minimized', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Minimize Dashlet?'), 'description' => 'Is Minimized?'), 'fullscreen_url' => array('name' => 'fullscreen_url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Fullscreen URL'), 'description' => 'fullscreen url for dashlet', 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'is_fullscreen' => array('name' => 'is_fullscreen', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Fullscreen?'), 'description' => 'Is Fullscreen?', 'default' => '1'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Dashlet Active?'), 'description' => 'Is this dashlet active?'), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is Dashlet Reserved?'), 'description' => 'Is this dashlet reserved?'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'description' => 'Ordering of the dashlets.'));
     }
     return self::$_fields;
 }
示例#2
0
 /**
  * returns all the column names of this table
  *
  * @access public
  * @return array
  */
 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'), 'label' => array('name' => 'label', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Label'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'url' => array('name' => 'url', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Url'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'content' => array('name' => 'content', 'type' => CRM_Utils_Type::T_TEXT, 'title' => ts('Content')), 'permission' => array('name' => 'permission', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Permission'), 'maxlength' => 255, 'size' => CRM_Utils_Type::HUGE), 'permission_operator' => array('name' => 'permission_operator', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Permission Operator'), 'maxlength' => 3, 'size' => CRM_Utils_Type::FOUR), 'column_no' => array('name' => 'column_no', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Column No')), 'is_minimized' => array('name' => 'is_minimized', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_fullscreen' => array('name' => 'is_fullscreen', 'type' => CRM_Utils_Type::T_BOOLEAN, 'default' => ''), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN), 'is_reserved' => array('name' => 'is_reserved', 'type' => CRM_Utils_Type::T_BOOLEAN), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight')), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date')));
     }
     return self::$_fields;
 }