cvs: pear /Translation2/Admin Decorator.php

From: Date: Tue, 26 Oct 2004 20:37:51 +0000
Subject: cvs: pear /Translation2/Admin Decorator.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-25265@lists.php.net to get a copy of this message
ieure Tue Oct 26 16:37:51 2004 EDT Modified files: /pear/Translation2/Admin Decorator.php Log: Document. Include regular decorator class. http://cvs.php.net/diff.php/pear/Translation2/Admin/Decorator.php?r1=1.1&r2=1.2&ty=u Index: pear/Translation2/Admin/Decorator.php diff -u pear/Translation2/Admin/Decorator.php:1.1 pear/Translation2/Admin/Decorator.php:1.2 --- pear/Translation2/Admin/Decorator.php:1.1 Tue Oct 26 06:00:32 2004 +++ pear/Translation2/Admin/Decorator.php Tue Oct 26 16:37:50 2004 @@ -16,45 +16,80 @@ // | Authors: Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: Decorator.php,v 1.1 2004/10/26 10:00:32 ieure Exp $ +// $Id: Decorator.php,v 1.2 2004/10/26 20:37:50 ieure Exp $ // /** * @package Translation2 - * @version $Id: Decorator.php,v 1.1 2004/10/26 10:00:32 ieure Exp $ + * @version $Id: Decorator.php,v 1.2 2004/10/26 20:37:50 ieure Exp $ */ + +require_once 'Translation2/Decorator.php'; + /** * Decorates a Translation2_Admin class. * Create a subclass of this class for your own "decoration". * @abstract * @package Translation2 + * @todo Don't allow stacking on top of regular Decorators, since that will + * break. */ class Translation2_Admin_Decorator extends Translation2_Decorator { + /** + * Create a new language + * + * @see Translation2_Admin::createNewLang() + */ function createNewLang($langData) { return $this->translation2->createNewLang($langData); } + /** + * Remove a language + * + * @see Translation2_Admin::removeLang() + */ function removeLang($langID = null, $force = false) { return $this->translation2->removeLang($langID, $force); } + /** + * Add a translation + * + * @see Translation2_Admin::add() + */ function add($stringID, $pageID = null, $stringArray) { return $this->translation2->add($stringID, $pageID, $stringArray); } + /** + * Update a translation + * + * @see Translation2_Admin::update() + */ function update($stringID, $pageID = null, $stringArray) { return $this->translation2->update($stringID, $pageID, $stringArray); } + /** + * Remove a translation + * + * @see Translation2_Admin::remove() + */ function remove($stringID, $pageID = null) { return $this->translation2->remove($stringID, $pageID); } + /** + * Clean the cache + * + * @see Translation2_Admin::cleanCache() + */ function cleanCache() { return $this->translation2->cleanCache();

« previous php.pear.cvs (#25265) next »