LDAPAccountManager/lam/lib/3rdParty/composer/pear-pear.horde.org/Horde_ListHeaders/Horde/ListHeaders/Base.php

69 lines
1.4 KiB
PHP

<?php
/**
* Object representation of a basic list header (RFC 2369) element.
*
* Copyright 2012-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.horde.org/licenses/lgpl21.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package ListHeaders
*/
/**
* Object representation of a basic list header (RFC 2369) element.
*
* @author Michael Slusarz <slusarz@horde.org>
* @category Horde
* @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
* @package ListHeaders
*
* @property string $comments Comments.
* @property string $url URL.
*/
class Horde_ListHeaders_Base extends Horde_ListHeaders_Object
{
/**
* Comments.
*
* @var array
*/
protected $_comments = array();
/**
* URL.
*
* @var string.
*/
protected $_url;
/**
* Constructor.
*
* @param string $url URL.
* @param array $comments Comments.
*/
public function __construct($url, array $comments = array())
{
$this->_url = $url;
$this->_comments = $comments;
}
/**
*/
public function __get($name)
{
switch ($name) {
case 'comments':
return $this->_comments;
case 'url':
return $this->_url;
}
}
}