/** * 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' => 'Component ID', 'required' => true), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Component name'), 'description' => 'Name of the component.', 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'namespace' => array('name' => 'namespace', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Namespace reserved for component.'), 'description' => 'Path to components main directory in a form of a class namespace. ', 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE)); } 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), 'name' => array('name' => 'name', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Component name'), 'required' => true, 'maxlength' => 64, 'size' => CRM_Utils_Type::BIG), 'namespace' => array('name' => 'namespace', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Namespace reserved for component.'), 'maxlength' => 128, 'size' => CRM_Utils_Type::HUGE)); } return self::$_fields; }