示例#1
0
文件: Feed.php 项目: nhp/shopware-4
 /**
  * Make accessing some individual elements of the feed easier.
  *
  * Special accessors 'entry' and 'entries' are provided so that if
  * you wish to iterate over an Atom feed's entries, you can do so
  * using foreach ($feed->entries as $entry) or foreach
  * ($feed->entry as $entry).
  *
  * @param  string $var The property to get.
  * @return mixed
  */
 public function __get($var)
 {
     switch ($var) {
         case 'entries':
             return $this;
         default:
             return parent::__get($var);
     }
 }