public function getDirLevel()
	{
		if (!trim($this->getPath()))
		{
			return 0;
		}

		$dirParts = explode('/', $this->getPath());

		return count($dirParts);
	}
public function getDirLevel()
	{
		if (!trim($this->getPath()))
		{
			return 0;
		}

		$dirParts = explode('/', $this->getPath());

		return count($dirParts);
	}
public function getDirLevel ( ) { if ( ! trim ( $ this -> getPath ( ) ) ) { return 0 ; } $ dirParts = explode ( '/' , $ this -> getPath ( ) ) ; return count ( $ dirParts ) ; }
Computes the depth of the entity

@return  int
Computes the depth of the entity