public function findAllByName($name)
    {
        $appNodes = array();
        foreach ($this->findAll() as $appNode) {
            if ($appNode->getName() == $name) {
                $appNodes[$appNode->getPrimaryKey()] = $appNode;
            }
        }
        return $appNodes;
    }
public function findAllByName($name)
    {
        $appNodes = array();
        foreach ($this->findAll() as $appNode) {
            if ($appNode->getName() == $name) {
                $appNodes[$appNode->getPrimaryKey()] = $appNode;
            }
        }
        return $appNodes;
    }
public function findAllByName ( $ name ) { $ appNodes = array ( ) ; foreach ( $ this -> findAll ( ) as $ appNode ) { if ( $ appNode -> getName ( ) == $ name ) { $ appNodes [ $ appNode -> getPrimaryKey ( ) ] = $ appNode ; } } return $ appNodes ; }
Returns the applications with the passed name.

@param string $name Name of the application to return

@return array The applications with the name passed as parameter
Returns the applications with the passed name .