public function getLink($type = 'edit')
	{
		$links = $this->xml->link;

		foreach ($links as $link)
		{
			if ($link->attributes()->rel == $type)
			{
				return (string) $link->attributes()->href;
			}
		}

		return false;
	}
public function getLink($type = 'edit')
	{
		$links = $this->xml->link;

		foreach ($links as $link)
		{
			if ($link->attributes()->rel == $type)
			{
				return (string) $link->attributes()->href;
			}
		}

		return false;
	}
public function getLink ( $ type = 'edit' ) { $ links = $ this -> xml -> link ; foreach ( $ links as $ link ) { if ( $ link -> attributes ( ) -> rel == $ type ) { return ( string ) $ link -> attributes ( ) -> href ; } } return false ; }
Method to get the photo link

@param   string  $type  Type of link to return

@return  string  Link or false on failure

@since   1.0
Method to get the photo link