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. @link     http://pear.php.net/package/Services_Blogging
  12. @see      Services_Blogging_MultipleBlogsInterface
  13. */
  14. {
  15.     const ERROR_INVALID_PROPERTY = 181;
  16.  
  17.     protected $values = array(
  18.         'id'    => null,
  19.         'name'  => null,
  20.         'url'   => null
  21.     );
  22.  
  23.  
  24.  
  25.     public function __construct($id = null$name = null$url = null)
  26.     {
  27.         $this->id   $id;
  28.         $this->name $name;
  29.         $this->url  $url;
  30.     }//public function __construct($id = null, $name = null, $url = null)
  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(
  42.                 'Invalid property "' . $strProperty . '"',
  43.                 self::ERROR_INVALID_PROPERTY
  44.             );
  45.         }
  46.         */
  47.         $this->values[$strProperty$value;
  48.     }//public function __set($strProperty, $value)
  49.  
  50.  
  51.  
  52.     public function __get($strProperty)
  53.     {
  54.         /*
  55.         if (!isset($this->values[$strProperty])) {
  56.             require_once 'Services/Blogging/Exception.php';
  57.             throw new Services_Blogging_Exception(
  58.                 'Invalid property "' . $strProperty . '"',
  59.                 self::ERROR_INVALID_PROPERTY
  60.             );
  61.         }
  62.         */
  63.         return $this->values[$strProperty];
  64.     }//public function __get($strProperty)
  65.  
  66. }//class Services_Blogging_Blog
  67. ?>

Documentation generated on Mon, 11 Mar 2019 15:25:12 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.