Ejemplo n.º 1
0
 static function store($id, &$cache)
 {
     foreach ($cache as $aclID => $data) {
         $dao = new CRM_ACL_DAO_Cache();
         if ($id) {
             $dao->contact_id = $id;
         }
         $dao->acl_id = $aclID;
         $cache[$aclID] = 1;
         $dao->save();
     }
 }
Ejemplo n.º 2
0
 /**
  * returns the list of fields that can be exported
  *
  * @access public
  * return array
  * @static
  */
 static function &export($prefix = false)
 {
     if (!self::$_export) {
         self::$_export = array();
         $fields = self::fields();
         foreach ($fields as $name => $field) {
             if (CRM_Utils_Array::value('export', $field)) {
                 if ($prefix) {
                     self::$_export['acl_cache'] =& $fields[$name];
                 } else {
                     self::$_export[$name] =& $fields[$name];
                 }
             }
         }
     }
     return self::$_export;
 }