Apache Zeta Components Manual :: File Source for storage_apc_array.php

Source for file storage_apc_array.php

Documentation is available at storage_apc_array.php

  1. <?php
  2. /**
  3.  * File containing the ezcCacheStorageFileApcArrayOptions class.
  4.  *
  5.  * Licensed to the Apache Software Foundation (ASF) under one
  6.  * or more contributor license agreements.  See the NOTICE file
  7.  * distributed with this work for additional information
  8.  * regarding copyright ownership.  The ASF licenses this file
  9.  * to you under the Apache License, Version 2.0 (the
  10.  * "License"); you may not use this file except in compliance
  11.  * with the License.  You may obtain a copy of the License at
  12.  * 
  13.  *   http://www.apache.org/licenses/LICENSE-2.0
  14.  * 
  15.  * Unless required by applicable law or agreed to in writing,
  16.  * software distributed under the License is distributed on an
  17.  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  18.  * KIND, either express or implied.  See the License for the
  19.  * specific language governing permissions and limitations
  20.  * under the License.
  21.  *
  22.  * @package Cache
  23.  * @version //autogentag//
  24.  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  25.  * @filesource
  26.  */
  27.  
  28. /**
  29.  * Option class for APC array storage.
  30.  *
  31.  * @property int $permissions 
  32.  *                File access permissions specified as an octal integer, default 0644.
  33.  *
  34.  * @package Cache
  35.  * @version //autogentag//
  36.  */
  37. {
  38.     /**
  39.      * Constructs an object with the specified values.
  40.      *
  41.      * @throws ezcBasePropertyNotFoundException
  42.      *          If $options contains a property not defined.
  43.      * @throws ezcBaseValueException
  44.      *          If $options contains a property with a value not allowed.
  45.      * @param array(string=>mixed) $options 
  46.      */
  47.     public function __constructarray $options array() )
  48.     {
  49.         $this->properties['permissions'0644;
  50.  
  51.         parent::__construct$options );
  52.     }
  53.  
  54.     /**
  55.      * Sets the option $name to $value.
  56.      *
  57.      * @throws ezcBasePropertyNotFoundException
  58.      *          If the property $name is not defined.
  59.      * @throws ezcBaseValueException
  60.      *          If $value is not correct for the property $name.
  61.      * @param string $name 
  62.      * @param mixed $value 
  63.      * @ignore
  64.      */
  65.     public function __set$name$value )
  66.     {
  67.         switch $name )
  68.         {
  69.             case "permissions":
  70.                 if !is_int$value || $value || $value 0777 )
  71.                 {
  72.                     throw new ezcBaseValueException$name$value"int > 0 and <= 0777" );
  73.                 }
  74.                 break;
  75.             default:
  76.                 parent::__set$name$value );
  77.                 return;
  78.         }
  79.         $this->properties[$name$value;
  80.     }
  81. }
  82. ?>
Documentation generated by phpDocumentor 1.4.3