How to create special plug-in with YOS amMap (Only commercial version) PDF Print E-mail
Written by sonlv   
Friday, 30 January 2009 22:08
There are no translations available.

With special plug-in which allows to display dynamic data on your map (For Ex: Visitors Counter on this site)

You just can create a normal plug-in with 'yos_ammap' group and 'onPrepareMapData' event.

XML Syntax:

 

PHP Syntax:

$mainframe->registerEvent( 'onPrepareMapData', 'plg_Yourname' );

/**
     * Example prepare map data method
     *
     *
     * @param     string        The ammap_data object. 
     * @param     int            The plug-in's id which will be checked by you in function

    */

 

function plg_Yourname(&$data, $id){

     ..... Your body function.....

}

Or

class plgYos_ammapYourplgname extends JPlugin
{
   
    function plgYos_ammapYourplgname( &$subject, $params )
    {
        parent::__construct( $subject, $params );
    }

    /**
     * Example prepare map data method
     *
     *
     * @param     string        The ammap_data object. 
     * @param     int            The plug-in's id which will be checked by you in function

    */
    function
onPrepareMapData( &$data, $id )
    {
       ..... Your body function .....

   }


}

YOS - Team


Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! MySpace! Yahoo! Free Joomla PHP extensions, software, information and tutorials.
Last Updated on Friday, 30 January 2009 23:10
 
Recent Articles:
More Articles: