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

Source for file skip_days.php

Documentation is available at skip_days.php

  1. <?php
  2. /**
  3.  * File containing the ezcFeedSkipDaysElement 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 Feed
  23.  * @version //autogentag//
  24.  * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
  25.  * @filesource
  26.  */
  27.  
  28. /**
  29.  * Class defining a skipDays element.
  30.  *
  31.  * @property array(string) $days 
  32.  *                          Which days to skip when retrieving a feed, for example
  33.  *                          array('Saturday', 'Sunday').
  34.  * @package Feed
  35.  * @version //autogentag//
  36.  */
  37. {
  38.     /**
  39.      * Sets the property $name to $value.
  40.      *
  41.      * @param string $name The property name
  42.      * @param mixed $value The property value
  43.      * @ignore
  44.      */
  45.     public function __set$name$value )
  46.     {
  47.         switch $name )
  48.         {
  49.             case 'days':
  50.                 if !is_array$value ) )
  51.                 {
  52.                     $value array$value );
  53.                 }
  54.  
  55.                 $this->properties[$name$value;
  56.                 break;
  57.  
  58.             default:
  59.                 parent::__set$name$value );
  60.         }
  61.     }
  62.  
  63.     /**
  64.      * Returns the value of property $name.
  65.      *
  66.      * @param string $name The property name
  67.      * @return mixed 
  68.      * @ignore
  69.      */
  70.     public function __get$name )
  71.     {
  72.         switch $name )
  73.         {
  74.             case 'days':
  75.                 if isset$this->properties[$name) )
  76.                 {
  77.                     return $this->properties[$name];
  78.                 }
  79.                 break;
  80.  
  81.             default:
  82.                 return parent::__get$name );
  83.         }
  84.     }
  85. }
  86. ?>
Documentation generated by phpDocumentor 1.4.3