User Tools

Site Tools


fsm:install_fsm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
fsm:install_fsm [2007/04/28 19:49] fgmfsm:install_fsm [2016/08/07 10:20] – [Installing OSInet FSM] fgm
Line 1: Line 1:
 +====== Installing OSInet FSM ======
 +
 +  * Requirements: 
 +    * PHP 5.x
 +    * Compatible with PHP-GTK 2
 +  * Obtain the current source from http://code.osinet.fr/fgm/php__phplib
 +  * Create a misc.php as described below
 +  * That's all
 +  * The OSInet FSM is licensed under [[http://www.cecill.info/index.en.html|CeCILL 2.0]]
 +
 +===== misc.php =====
 +
 +By default, u_fsm.php needs the function func_name() to be defined in an included file called misc.php . This is because, until some refactoring is done, misc.php is part of OSInet Office 5, which is unpublished proprietary code. A sample implementation of func_name() is:
 +
 +<code php>
 +/**
 + * returns the name of the invoking function/method
 + * if it's a method, it is prefixed by the class name
 + *
 + * @return string
 + */
 +function func_name()
 +  {
 +  $trace = debug_backtrace();
 +  $func = $trace[1]['function'];
 +  if (isset($trace[1]['class']))
 +    $func = $trace[1]['class'] . '::' . $func;
 +  return $func;
 +  }
 +</code>
 +
 +Just paste this in a misc.php file of your own and you can use the FSM.
 +
  
fsm/install_fsm.txt · Last modified: 2020/11/23 17:23 by 127.0.0.1