Jarves\Configuration\EntryPoint::getChildren PHP Method

getChildren() public method

public getChildren ( ) : EntryPoint[]
return EntryPoint[]
    public function getChildren()
    {
        return $this->children;
    }

Usage Example

Example #1
0
 /**
  * @param EntryPoint $entryPoint
  * @return EntryPoint[]
  */
 public function getAllEntryPoints(EntryPoint $entryPoint = null)
 {
     $entryPoints = array();
     if ($entryPoint) {
         $subEntryPoints = $entryPoint->getChildren();
     } else {
         $subEntryPoints = $this->getEntryPoints();
     }
     if (null !== $subEntryPoints) {
         foreach ($subEntryPoints as $subEntryPoint) {
             $entryPoints[$this->getBundleName() . '/' . $subEntryPoint->getFullPath()] = $subEntryPoint;
             $entryPoints = array_merge($entryPoints, $this->getAllEntryPoints($subEntryPoint));
         }
     }
     return $entryPoints;
 }