예제 #1
0
 /**
  * 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), 'user_id' => array('name' => 'user_id', 'type' => CRM_Utils_Type::T_INT, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'operation' => array('name' => 'operation', 'type' => CRM_Utils_Type::T_ENUM, 'title' => ts('Operation'), 'required' => true, 'enumValues' => 'All,View,Edit,Create,Delete,Grant,Revoke'));
     }
     return self::$_fields;
 }
예제 #2
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' => 'primary key', 'required' => true), 'user_id' => array('name' => 'user_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to civicrm_contact (could be null for anon user)', 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'contact_id' => array('name' => 'contact_id', 'type' => CRM_Utils_Type::T_INT, 'description' => 'FK to civicrm_contact', 'required' => true, 'FKClassName' => 'CRM_Contact_DAO_Contact'), 'operation' => array('name' => 'operation', 'type' => CRM_Utils_Type::T_STRING, 'title' => ts('Operation'), 'description' => 'What operation does this user have permission on?', 'required' => true, 'maxlength' => 8, 'size' => CRM_Utils_Type::EIGHT, 'html' => array('type' => 'Select'), 'pseudoconstant' => array('callback' => 'CRM_ACL_BAO_ACL::operation')));
     }
     return self::$_fields;
 }