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

Source for file Blog.php

Documentation is available at Blog.php

  1. <?php
  2. /**
  3. *   Blog object. Used when multiple blogs are supported by
  4. *   one account.
  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. *   @see Services_Blogging_MultipleBlogsInterface
  12. */
  13. {
  14.     const ERROR_INVALID_PROPERTY = 181;
  15.  
  16.     protected $values = array(
  17.         'id'    => null,
  18.         'name'  => null,
  19.         'url'   => null
  20.     );
  21.  
  22.  
  23.  
  24.     public function __construct($id = null$name = null$url = null)
  25.     {
  26.         $this->id   $id;
  27.         $this->name $name;
  28.         $this->url  $url;
  29.     }//public function __construct($id = null, $name = null, $url = null)
  30.  
  31.  
  32.  
  33.     public function __set($strProperty$value)
  34.     {
  35. /*
  36.         if (!isset($this->values[$strProperty])) {
  37.             require_once 'Services/Blogging/Exception.php';
  38.             var_dump($this->values);
  39.             echo 'Invalid property "' . $strProperty . '"';
  40.             throw new Services_Blogging_Exception('Invalid property "' . $strProperty . '"', self::ERROR_INVALID_PROPERTY);
  41.         }
  42. */
  43.         $this->values[$strProperty$value;
  44.     }//public function __set($strProperty, $value)
  45.  
  46.  
  47.  
  48.     public function __get($strProperty)
  49.     {
  50. /*
  51.         if (!isset($this->values[$strProperty])) {
  52.             require_once 'Services/Blogging/Exception.php';
  53.             throw new Services_Blogging_Exception('Invalid property "' . $strProperty . '"', self::ERROR_INVALID_PROPERTY);
  54.         }
  55. */
  56.         return $this->values[$strProperty];
  57.     }//public function __get($strProperty)
  58.  
  59. }//class Services_Blogging_Blog
  60. ?>

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