@define('IMP_BASE', dirname(__FILE__));
$authentication = 'horde';
require_once IMP_BASE . '/lib/base.php';
-require_once IMP_BASE . '/lib/Imple.php';
if (!($path = Util::getFormData('imple'))) {
exit;
$path = explode('/', $path);
$impleName = array_shift($path);
-if (!($imple = Imple::factory($impleName))) {
+if (!($imple = IMP_Imple::factory($impleName))) {
exit;
}
* @author Michael Slusarz <slusarz@horde.org>
* @package IMP
*/
-class Imple
+class IMP_Imple
{
/**
* Parameters needed by the subclasses.
protected $_params = array();
/**
- * Attempts to return a concrete Imple instance based on $imple.
+ * Attempts to return a concrete IMP_Imple instance based on $imple.
*
- * @param string $imple The type of concrete Imple subclass to return based
+ * @param string $imple The type of concrete subclass to return based
* on the imple type indicated. The code is
* dynamically included.
* @param array $params The configuration parameter array.
*
- * @return mixed The newly created concrete Imple instance, or false on
- * error.
+ * @return mixed The newly created concrete instance, or false on error.
*/
static public function factory($imple, $params = array())
{
return false;
}
- $class = 'Imple_' . $imple;
+ $class = 'IMP_Imple_' . $imple;
if (!class_exists($class)) {
include_once dirname(__FILE__) . '/Imple/' . $imple . '.php';
if (!class_exists($class)) {
}
/**
- * Attach the Imple object to a javascript event.
+ * Attach the object to a javascript event.
*/
public function attach()
{
* @author Michael Slusarz <slusarz@horde.org>
* @package IMP
*/
-class Imple_ContactAutoCompleter extends Imple
+class IMP_Imple_ContactAutoCompleter extends IMP_Imple
{
/**
* The URL to use in attach().
}
/**
- * Attach the Imple object to a javascript event.
+ * Attach the object to a javascript event.
*/
public function attach()
{
* @author Michael Slusarz <slusarz@horde.org>
* @package IMP
*/
-class Imple_SpellChecker extends Imple
+class IMP_Imple_SpellChecker extends IMP_Imple
{
/**
* Constructor.
'Error' => $spell_img . $br . _("Spell Check Failed")
)
);
- call_user_func_array(array($mode == 'dimp' ? 'Dimple' : 'Imple', 'factory'), array('SpellChecker', $args));
+ call_user_func_array(array($mode == 'dimp' ? 'Dimple' : 'IMP_Imple', 'factory'), array('SpellChecker', $args));
}
/**