| Server IP : 104.21.80.248 / Your IP : 162.159.115.41 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/tuprblearn/lib/horde/framework/Horde/Mail/Rfc822/ |
Upload File : |
<?php
/**
* Copyright 2012-2017 Horde LLC (http://www.horde.org/)
*
* See the enclosed file LICENSE for license information (BSD). If you
* did not receive this file, see http://www.horde.org/licenses/bsd.
*
* @category Horde
* @copyright 2012-2017 Horde LLC
* @license http://www.horde.org/licenses/bsd New BSD License
* @package Mail
*/
/**
* Container object for a collection of group addresses.
*
* @author Michael Slusarz <[email protected]>
* @category Horde
* @copyright 2012-2017 Horde LLC
* @license http://www.horde.org/licenses/bsd New BSD License
* @package Mail
*/
class Horde_Mail_Rfc822_GroupList extends Horde_Mail_Rfc822_List
{
/**
* Add objects to the container.
*
* @param mixed $obs A RFC 822 object (or list of objects) to store in
* this object.
*/
public function add($obs)
{
if ($obs instanceof Horde_Mail_Rfc822_Object) {
$obs = array($obs);
}
foreach ($obs as $val) {
/* Only allow addresses. */
if ($val instanceof Horde_Mail_Rfc822_Address) {
parent::add($val);
}
}
}
/**
* Group count.
*
* @return integer The number of groups in the list.
*/
public function groupCount()
{
return 0;
}
}