Gc\Document\Model::getChildren PHP Method

getChildren() public method

(non-PHPdoc)
See also: include Gc\Component\IterableInterface#getChildren()
public getChildren ( ) : array
return array
    public function getChildren()
    {
        if ($this->getData('children') === null) {
            $children = new Collection();
            $children->load($this->getId());
            $this->setData('children', $children->getChildren());
        }
        return $this->getData('children');
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Test
  *
  * @return void
  */
 public function testGetChildren()
 {
     $this->assertInternalType('array', $this->object->getChildren());
 }
All Usage Examples Of Gc\Document\Model::getChildren