public function getParent($raw = true)
	{
		$return = '';

		if (isset($this->dirname))
		{
			$return = $this->dirname;
		}
		else if ($path = $this->getPath())
		{
			$bits = explode('/', $path);
			array_pop($bits);

			if (count($bits) > 0)
			{
				$return = implode('/', $bits);
			}
		}

		return $raw ? $return : self::fromPath($return, $this->getAdapter());
	}
public function getParent($raw = true)
	{
		$return = '';

		if (isset($this->dirname))
		{
			$return = $this->dirname;
		}
		else if ($path = $this->getPath())
		{
			$bits = explode('/', $path);
			array_pop($bits);

			if (count($bits) > 0)
			{
				$return = implode('/', $bits);
			}
		}

		return $raw ? $return : self::fromPath($return, $this->getAdapter());
	}
public function getParent ( $ raw = true ) { $ return = '' ; if ( isset ( $ this -> dirname ) ) { $ return = $ this -> dirname ; } else if ( $ path = $ this -> getPath ( ) ) { $ bits = explode ( '/' , $ path ) ; array_pop ( $ bits ) ; if ( count ( $ bits ) > 0 ) { $ return = implode ( '/' , $ bits ) ; } } return $ raw ? $ return : self :: fromPath ( $ return , $ this -> getAdapter ( ) ) ; }
Grabs the parent element, if applicable

@param   bool  $raw  Whether or not to return raw string or applicable object
@return  string|object
Grabs the parent element if applicable