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.     
  34.     public function __set($strProperty$value)
  35.     {
  36. /*
  37.         if (!isset($this->values[$strProperty])) {
  38.             require_once 'Services/Blogging/Exception.php';
  39.             var_dump($this->values);
  40.             echo 'Invalid property "' . $strProperty . '"';
  41.             throw new Services_Blogging_Exception('Invalid property "' . $strProperty . '"', self::ERROR_INVALID_PROPERTY);
  42.         }
  43. */
  44.         $this->values[$strProperty$value;
  45.     }//public function __set($strProperty, $value)
  46.  
  47.  
  48.  
  49.     
  50.     public function __get($strProperty)
  51.     {
  52. /*
  53.         if (!isset($this->values[$strProperty])) {
  54.             require_once 'Services/Blogging/Exception.php';
  55.             throw new Services_Blogging_Exception('Invalid property "' . $strProperty . '"', self::ERROR_INVALID_PROPERTY);
  56.         }
  57. */
  58.         return $this->values[$strProperty];
  59.     }//public function __get($strProperty)
  60.  
  61. }//class Services_Blogging_Blog
  62. ?>

Documentation generated on Sat, 27 Jan 2007 12:00:05 -0500 by phpDocumentor 1.3.0. PEAR Logo Copyright © PHP Group 2004.