/** * 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), 'dashboard_id' => array('name' => 'dashboard_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Dashboard'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), '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), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Weight')), 'content' => array('name' => 'content', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Content')), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Created Date'))); } return self::$_fields; }
/** * 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('Dashboard Contact ID'), 'required' => true), 'dashboard_id' => array('name' => 'dashboard_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Dashboard'), 'description' => 'Dashboard ID', 'required' => true, 'FKClassName' => 'CRM_Core_DAO_Dashboard'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Dashboard Contact'), 'description' => 'Contact ID', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'column_no' => array('name' => 'column_no', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Column No'), 'description' => 'column no for this widget'), 'is_minimized' => array('name' => 'is_minimized', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Dashlet is Minimized?'), 'description' => 'Is Minimized?'), 'is_fullscreen' => array('name' => 'is_fullscreen', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Dashlet is FullScreen?'), 'description' => 'Is Fullscreen?', 'default' => '1'), 'is_active' => array('name' => 'is_active', 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Dashlet is Active?'), 'description' => 'Is this widget active?'), 'weight' => array('name' => 'weight', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Order'), 'description' => 'Ordering of the widgets.'), 'content' => array('name' => 'content', 'type' => CRM_Utils_Type::T_LONGTEXT, 'title' => ts('Content'), 'description' => 'dashlet content'), 'created_date' => array('name' => 'created_date', 'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME, 'title' => ts('Dashlet Created On'), 'description' => 'When was content populated')); } return self::$_fields; }