Commit Graph

78 Commits

Author SHA1 Message Date
Erik Amaru Ortiz
6e5c72d00d Restful Feature,
- made some improvements to read & generate config file
- now the rest-gen bin can be generate rest api for a plugin from a <plugin-name>/config/rest-config.ini
conf file.
- plugins should have a directory services/rest containing all rest classes, like PM structure at CORE_PATH.
2012-08-27 10:48:32 -04:00
Erik Amaru Ortiz
ce21ee6454 PM Rest Feature: added plugins support & more improvements
from a plugin a rest class can be registered now:

on setup method add the following:
---
$this->registerRestService('Sample', [optional string: $path]);
--

and create the folder   PATH_PLUGIN . /your_plugin/classes/rest

next add a class with the flowing characteristics:

<?php

class Plugin_Services_Rest_Sample
{
    public function get()
    {
        return 'hello world';
    }
}

A class prefixed with Plugin_Services_Rest_
and add the corresponding methods for a Restler api
(http://luracast.com/products/restler/)

Finally on process maker will be exposed as:

via GET: http://127.0.0.1/rest/workflow/sample
2012-08-23 13:01:19 -04:00
Fernando Ontiveros
4f8ca480b9 fixing class definition, the constructor was defined as private function 2012-07-12 20:36:41 -04:00
Victor Saisa Lopez
3f9c2fb7a0 BUG 8925 "PM 2.0.39 testing 3 Al eliminar el plugin enterprise desde..." SOLVED
- Al eliminar el plugin enterprise en un workspace, no se elimina del registro de plugins en los demas workspaces, quedando registros de los plugins en el "plugin.singleton" en cada workspace
- Al eliminar un plugin en un workspace se eliminan tambien los registros en los demas workspaces, se ha implementado la accion "uninstall" para los plugins, ahora al eliminar un plugin se llama a su metodo "uninstall" si esta definido
2012-04-18 11:35:02 -04:00
Victor Saisa Lopez
848f1e1abc BUG 8938 "PM 2.0.39 testing 3 Al instalar la version enterprise 1.4..." SOLVED
- When install the plug-in enterprise-1.4 and upgrade to version enterprise-2.0 generate one "Fatal error"
- Added methods in the core of processmaker
- Added code in the plug-in enterprise-2.0 to uninstall the previous version automatically
2012-04-12 12:17:46 -04:00
Julio Cesar Laura
45bc1722e7 BUG 000 Arreglado problema con referencia a objetos en el listado de plugins
- Se esta usando una asignacion por refenencia cuando se almacena la informacion de los plugins, esto provoca q los
elementos posteriores al primero tengan la misma informacion, posiblemente se deba por compatibilidad con PHP 4.x
- Se cambio la asignacion por referencia por una asignacion normal ya que los objetos en PHP 5 siempre se asignan por referencia
2012-03-09 09:54:32 -04:00
Julio Cesar Laura
13d850daf2 BUG 000 Add dummy function registerDashboard for backwards compatibility 2012-01-19 16:21:20 -04:00
Julio Cesar Laura
705e2c1b8b BUG 8284 Add validation if the class of the plugin doesnt exists 2012-01-12 18:20:09 -04:00
Julio Cesar Laura
6978f5f282 BUG 000 Fix bug with the home menu 2012-01-04 12:23:16 -04:00
Julio Cesar Laura
c003597d1b BUG 000 Add hook for dashlets 2012-01-03 18:31:15 -04:00
Victor Saisa Lopez
595135b174 BUG 0000 Addition of the path to the plugin in the method uninstallPlugin()
We performed the inclusion of the file php with require_once, for handling it.
Then took place what is necessary for to uninstall the plugin.

This method is not being used anywhere in the core of ProcessMaker. We conducted a search with the following command:

find -name '*.*' -type f | xargs grep 'uninstallPlugin'
2011-12-20 09:16:08 -04:00
Victor Saisa Lopez
c6c8aa9a93 BUG 0000 installPluginArchive() after of install or upgrade enable plugin 2011-12-20 09:15:48 -04:00
Victor Saisa Lopez
92c35449bd BUG 0000 Change in function "installPluginArchive"
The "installPluginArchive" is only used for plugin "enterprise 2.0", was searched in the core ProcessMaker in the branch "2.0-dev", and not find any files that use this function.
2011-11-23 18:58:47 -04:00
Julio Cesar Laura
34cfa3aadf BUG 000 Add validation in the include of the plugin class 2011-10-10 13:25:59 -04:00
Erik Amaru Ortiz
be0c90af87 BUG 000 momentarily reverted to rc5 fro pmTables (fix) 2011-09-05 12:47:25 -04:00
Erik Amaru Ortiz
e603b38344 BUG 0000 - Javascript Registry for plugins was added (docblock corrections)
- using inside the plugin class: registerJavascript('core_folder/core_js', 'my_plugin/my_js');
2011-07-01 18:31:27 -04:00
Erik Amaru Ortiz
dbb3da02c0 BUG 0000 - Javascript Registry for plugins was added
- using inside the plugin class:
       registerJavascript('core_folder/core_js', 'my_plugin/my_js');
2011-07-01 17:58:40 -04:00
Alexandre Rosenfeld
74d49edeb7 BUG 5978 Fix some problems when installing a plugin with PluginRegistry 2011-04-19 18:20:16 -04:00
Douglas Medrano Chura
c4635bc56a BUG 5004 Change text doesn't exists!
All wrong texts like doesn't exists or not exists by doesn't exist
2011-04-13 18:57:02 -04:00
Alexandre Rosenfeld
35d119cc4f BUG 5978 Added uninstall method in PluginRegistry 2011-04-06 09:07:54 -04:00
Alexandre Rosenfeld
6e0bd5405d BUG 5978 Refactored plugin install to PluginRegistry
This allows plugins to be installed from anywhere in
the code and not only when being uploaded by the user.
2011-04-04 09:28:37 -04:00
abraar
ef427ec0df Changes done for PhpDoc 2011-02-01 12:49:40 +00:00
Abraar
0248e8121d Changes made for documentation 2011-01-22 12:20:08 +00:00
Hugo Loza
324bb69a6a Extended Property for Tasks 2011-01-18 22:14:46 +00:00
Hugo Loza
8d7e7a4acd Allow plugins to always be registered to mantain them with last version always 2011-01-12 23:04:02 +00:00
Hugo Loza
15ead25a30 Allow plugins to always be registered to mantain them with last version always 2011-01-12 13:58:51 +00:00
abraar
5715059f24 Added all the changes which done before for php5.3 in pmos9b 2010-12-03 15:43:29 +00:00
Erik Amaru Ortiz
0525681d79 initial commit from rev. 632 2010-12-02 23:34:41 +00:00