Overview

Packages

  • Date
  • None
  • Service
    • Scribd

Classes

  • Horde_Service_Scribd
  • Horde_Service_Scribd_Request
  • Horde_Service_Scribd_Response
  • Horde_Service_Scribd_Result
  • Horde_Service_Scribd_ResultSet

Exceptions

  • Horde_Service_Scribd_Exception
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Copyright 2008-2012 Horde LLC (http://www.horde.org/)
 4:  *
 5:  * @author   Chuck Hagenbuch <chuck@horde.org>
 6:  * @license  http://www.horde.org/licenses/bsd BSD
 7:  * @category Horde
 8:  * @package  Service_Scribd
 9:  */
10: 
11: /**
12:  * Scribd result set class
13:  *
14:  * @author   Chuck Hagenbuch <chuck@horde.org>
15:  * @license  http://www.horde.org/licenses/bsd BSD
16:  * @category Horde
17:  * @package  Service_Scribd
18:  */
19: class Horde_Service_Scribd_ResultSet extends Horde_Xml_Element_List
20: {
21:     /**
22:      * The classname for individual feed elements.
23:      * @var string
24:      */
25:     protected $_listItemClassName = 'Horde_Service_Scribd_Result';
26: 
27:     /**
28:      * Cache the individual list items so they don't need to be
29:      * searched for on every operation.
30:      */
31:     protected function _buildListItemCache()
32:     {
33:         $results = array();
34:         foreach ($this->_element->childNodes as $child) {
35:             if ($child->localName == 'result') {
36:                 $results[] = $child;
37:             }
38:         }
39: 
40:         return $results;
41:     }
42: 
43: }
44: 
API documentation generated by ApiGen