Services_Blogging
[ class tree: Services_Blogging ] [ index: Services_Blogging ] [ all elements ]

Source for file MediaObject.php

Documentation is available at MediaObject.php

  1. <?php
  2. /**
  3. *   Media object (image, video, sound) in a blog entry.
  4. *   Not used currently.
  5. *
  6. *   @category    Services
  7. *   @package     Services_Blogging
  8. *   @author      Anant Narayanan <anant@php.net>
  9. *   @author      Christian Weiske <cweiske@php.net>
  10. *   @license     http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
  11. */
  12. {
  13.     const ERROR_INVALID_PROPERTY = 181;
  14.  
  15.     protected $values = array(
  16.         'name'      => null,
  17.         'mimetype'  => null,
  18.         'filename'  => null
  19.     );
  20.  
  21.  
  22.     public function __set($strProperty$value)
  23.     {
  24.         if (!isset($this->values[$strProperty])) {
  25.             require_once 'Services/Blogging/Exception.php';
  26.             throw new Services_Blogging_Exception('Invalid property "' $strProperty '"'self::ERROR_INVALID_PROPERTY);
  27.         }
  28.         $this->values[$strProperty$value;
  29.     }//public function __set($strProperty, $value)
  30.  
  31.  
  32.  
  33.     public function __get($strProperty)
  34.     {
  35.         if (!isset($this->values[$strProperty])) {
  36.             require_once 'Services/Blogging/Exception.php';
  37.             throw new Services_Blogging_Exception('Invalid property "' $strProperty '"'self::ERROR_INVALID_PROPERTY);
  38.         }
  39.         return $this->values[$strProperty];
  40.     }//public function __get($strProperty)
  41.  
  42. }//class Services_Blogging_MediaObject
  43. ?>

Documentation generated on Mon, 11 Mar 2019 14:57:58 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.