steffen: server/kolab-horde-framework/kolab-horde-framework/Editor Editor.php, NONE, 1.1 package.xml, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Fri Oct 14 16:33:06 CEST 2005
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/File_PDF/PDF/fonts courier.php, NONE, 1.1 helvetica.php, NONE, 1.1 helveticab.php, NONE, 1.1 helveticabi.php, NONE, 1.1 helveticai.php, NONE, 1.1 symbol.php, NONE, 1.1 times.php, NONE, 1.1 timesb.php, NONE, 1.1 timesbi.php, NONE, 1.1 timesi.php, NONE, 1.1 zapfdingbats.php, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/Auth/Auth Signup.php, NONE, 1.1 application.php, NONE, 1.1 auto.php, NONE, 1.1 composite.php, NONE, 1.1 customsql.php, NONE, 1.1 cyrsql.php, NONE, 1.1 cyrus.php, NONE, 1.1 ftp.php, NONE, 1.1 http.php, NONE, 1.1 imap.php, NONE, 1.1 imsp.php, NONE, 1.1 ipbasic.php, NONE, 1.1 ipmap.php, NONE, 1.1 krb5.php, NONE, 1.1 ldap.php, NONE, 1.1 login.php, NONE, 1.1 mcal.php, NONE, 1.1 pam.php, NONE, 1.1 passwd.php, NONE, 1.1 radius.php, NONE, 1.1 sasl.php, NONE, 1.1 smb.php, NONE, 1.1 sql.php, NONE, 1.1 yahoo.php, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: steffen
Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/Editor
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/Editor
Added Files:
Editor.php package.xml
Log Message:
Separated Horde Framework from kolab-resource-handlers
--- NEW FILE: Editor.php ---
<?php
/**
* Editor Class
*
* The Editor:: package provides an rte editor for the Horde
* Application Framework.
*
* $Horde: framework/Editor/Editor.php,v 1.6 2004/01/01 15:15:50 jan Exp $
*
* Copyright 2003-2004 Nuno Loureiro <nuno at co.sapo.pt>
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Nuno Loureiro <nuno at co.sapo.pt>
* @version $Revision: 1.1 $
* @since Horde 3.0
* @package Horde_Editor
*/
class Horde_Editor {
/**
* Attempts to return a concrete Horde_Editor instance based on
* $driver.
*
* @access public
*
* @param mixed $driver The type of concrete Horde_Editor subclass to
* return. This is based on the storage
* driver ($driver). The code is
* dynamically included. If $driver is an
* array, then we will look in
* $driver[0]/lib/Driver/ for the subclass
* implementation named $driver[1].php.
* @param optional array $params A hash containing any additional
* configuration or connection parameters a
* subclass might need.
*
* @return object Horde_Editor The newly created concrete Horde_Editor instance,
* or false on error.
*/
function &factory($driver, $params = null)
{
if (is_array($driver)) {
$app = $driver[0];
$driver = $driver[1];
}
$driver = basename($driver);
if (empty($driver) || $driver == 'none') {
return $ret = &new Horde_Editor($params);
}
if (is_null($params) && class_exists('Horde')) {
$params = Horde::getDriverConfig('editor', $driver);
}
if (!empty($app)) {
global $registry;
require_once $registry->getParam('fileroot', $app) . '/lib/Editor/' . $driver . '.php';
} elseif (@file_exists(dirname(__FILE__) . '/Editor/' . $driver . '.php')) {
require_once dirname(__FILE__) . '/Editor/' . $driver . '.php';
} else {
@include_once 'Horde/Editor/' . $driver . '.php';
}
$class = 'Horde_Editor_' . $driver;
if (class_exists($class)) {
return $ret = &new $class($params);
} else {
return PEAR::raiseError('Class definition of ' . $class . ' not found.');
}
}
/**
* Attempts to return a reference to a concrete Horde_Editor
* instance based on $driver. It will only create a new instance
* if no Horde_Editor instance with the same parameters currently
* exists.
*
* This should be used if multiple cache backends (and, thus,
* multiple Horde_Editor instances) are required.
*
* This method must be invoked as:
* $var = &Horde_Editor::singleton()
*
* @access public
*
* @param mixed $driver The type of concrete Horde_Editor subclass to
* return. This is based on the storage
* driver ($driver). The code is
* dynamically included. If $driver is an
* array, then we will look in
* $driver[0]/lib/Editor/ for the subclass
* implementation named $driver[1].php.
* @param optional array $params A hash containing any additional
* configuration or connection parameters a
* subclass might need.
*
* @since Horde 2.2
*
* @return object Horde_Editor The concrete Horde_Editor reference,
* or false on error.
*/
function &singleton($driver, $params = null)
{
static $instances;
if (!isset($instances)) {
$instances = array();
}
if (is_null($params) && class_exists('Horde')) {
$params = Horde::getDriverConfig('cache', $driver);
}
$signature = serialize(array($driver, $params));
if (!array_key_exists($signature, $instances)) {
$instances[$signature] = &Horde_Editor::factory($driver, $params);
}
return $instances[$signature];
}
}
--- NEW FILE: package.xml ---
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Horde: framework/Editor/package.xml,v 1.1 2004/02/11 21:39:51 chuck Exp $ -->
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
<name>Horde_Editor</name>
<summary>Horde Editor API</summary>
<description>
TODO
</description>
<license>LGPL</license>
<maintainers>
<maintainer>
<user>chuck</user>
<role>lead</role>
<name>Chuck Hagenbuch</name>
<email>chuck at horde.org</email>
</maintainer>
</maintainers>
<release>
<version>0.0.1</version>
<state>alpha</state>
<date>2004-02-11</date>
<notes>Initial packaging</notes>
<filelist>
<file role="php" baseinstalldir="/Horde" name="Editor.php" />
<dir name="Editor" baseinstalldir="/Horde" role="php">
<file name="htmlarea.php" />
</dir>
</filelist>
</release>
<deps>
<dep type="pkg" rel="has">Horde_Util</dep>
</deps>
<changelog>
<release>
<version>0.0.1</version>
<date>2004-02-11</date>
<state>alpha</state>
<notes>Initial packaging</notes>
</release>
</changelog>
</package>
- Previous message: steffen: server/kolab-horde-framework/kolab-horde-framework/File_PDF/PDF/fonts courier.php, NONE, 1.1 helvetica.php, NONE, 1.1 helveticab.php, NONE, 1.1 helveticabi.php, NONE, 1.1 helveticai.php, NONE, 1.1 symbol.php, NONE, 1.1 times.php, NONE, 1.1 timesb.php, NONE, 1.1 timesbi.php, NONE, 1.1 timesi.php, NONE, 1.1 zapfdingbats.php, NONE, 1.1
- Next message: steffen: server/kolab-horde-framework/kolab-horde-framework/Auth/Auth Signup.php, NONE, 1.1 application.php, NONE, 1.1 auto.php, NONE, 1.1 composite.php, NONE, 1.1 customsql.php, NONE, 1.1 cyrsql.php, NONE, 1.1 cyrus.php, NONE, 1.1 ftp.php, NONE, 1.1 http.php, NONE, 1.1 imap.php, NONE, 1.1 imsp.php, NONE, 1.1 ipbasic.php, NONE, 1.1 ipmap.php, NONE, 1.1 krb5.php, NONE, 1.1 ldap.php, NONE, 1.1 login.php, NONE, 1.1 mcal.php, NONE, 1.1 pam.php, NONE, 1.1 passwd.php, NONE, 1.1 radius.php, NONE, 1.1 sasl.php, NONE, 1.1 smb.php, NONE, 1.1 sql.php, NONE, 1.1 yahoo.php, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the commits
mailing list