english/components/com_mailto/helpers/mailto.php
/**
	 * Adds a URL to the mailto system and returns the hash
	 *
	 * @param string url
	 * @return URL hash
	 */
Adds a URL to the mailto system and returns the hash
@param string url
@return URL hash
Adds a URL to the mailto system and returns the hash @param string url @return URL hash
public static function addLink($url)
	{
		$hash = sha1($url);
		self::cleanHashes();
		$session = JFactory::getSession();
		$mailto_links = $session->get('com_mailto.links', Array());
		if(!isset($mailto_links[$hash]))
		{
			$mailto_links[$hash] = new stdClass();
		}
		$mailto_links[$hash]->link = $url;
		$mailto_links[$hash]->expiry = time();
		$session->set('com_mailto.links', $mailto_links);
		return $hash;
	}
public static function addLink ( $ url ) { $ hash = sha1 ( $ url ) ; self :: cleanHashes ( ) ; $ session = JFactory :: getSession ( ) ; $ mailto_links = $ session -> get ( 'com_mailto.links' , Array ( ) ) ; if ( ! isset ( $ mailto_links [ $ hash ] ) ) { $ mailto_links [ $ hash ] = new stdClass ( ) ; } $ mailto_links [ $ hash ] -> link = $ url ; $ mailto_links [ $ hash ] -> expiry = time ( ) ; $ session -> set ( 'com_mailto.links' , $ mailto_links ) ; return $ hash ; }
Adds a URL to the mailto system and returns the hash
 @param string url
 @return URL hash
Adds a URL to the mailto system and returns the hash @param string url @return URL hash