|
@@ -0,0 +1,61 @@
|
|
|
+<?php
|
|
|
+/* For licensing terms, see /license.txt */
|
|
|
+/**
|
|
|
+ * The google maps class allows to use
|
|
|
+ * @author José Loguercio Silva <jose.loguercio@beeznest.com>
|
|
|
+ * @package chamilo.plugin.google_maps
|
|
|
+ */
|
|
|
+class GoogleMapsPlugin extends Plugin
|
|
|
+{
|
|
|
+ /**
|
|
|
+ * Class constructor
|
|
|
+ */
|
|
|
+ protected function __construct()
|
|
|
+ {
|
|
|
+ $parameters = array(
|
|
|
+ 'api_key' => 'text'
|
|
|
+ );
|
|
|
+
|
|
|
+ parent::__construct('1.0', 'José Loguercio Silva', $parameters);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Get the plugin Name
|
|
|
+ *
|
|
|
+ * @return string
|
|
|
+ */
|
|
|
+ public function get_name()
|
|
|
+ {
|
|
|
+ return "google_maps";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Instance the plugin
|
|
|
+ * @staticvar null $result
|
|
|
+ * @return GoogleMapsPlugin
|
|
|
+ */
|
|
|
+ static function create()
|
|
|
+ {
|
|
|
+ static $result = null;
|
|
|
+
|
|
|
+ return $result ? $result : $result = new self();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Install the plugin
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function install()
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Uninstall the plugin
|
|
|
+ * @return void
|
|
|
+ */
|
|
|
+ public function uninstall()
|
|
|
+ {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+}
|