public function save($directory)
    {
        $parts = explode('_', $this->getClass());
        array_unshift($parts, $directory);
        $path = join(DIRECTORY_SEPARATOR, $parts) . '.php';
        self::saveToFile($path, $this->getSrc());
    }
public function save($directory)
    {
        $parts = explode('_', $this->getClass());
        array_unshift($parts, $directory);
        $path = join(DIRECTORY_SEPARATOR, $parts) . '.php';
        self::saveToFile($path, $this->getSrc());
    }
public function save ( $ directory ) { $ parts = explode ( '_' , $ this -> getClass ( ) ) ; array_unshift ( $ parts , $ directory ) ; $ path = join ( DIRECTORY_SEPARATOR , $ parts ) . '.php' ; self :: saveToFile ( $ path , $ this -> getSrc ( ) ) ; }
Saves the file to the location complying with the Magento classloader's file placement
structure

@param string $directory the directory to which to save the file
Saves the file to the location complying with the Magento classloader s file placement structure