Source for file Decorator.php
Documentation is available at Decorator.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* ScriptReorganizer Type :: Decorator
* LICENSE: This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option) any
* @package ScriptReorganizer
* @author Stefano F. Rausch <stefano@rausch-e.net>
* @copyright 2005 Stefano F. Rausch <stefano@rausch-e.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version SVN: $Id: Decorator.php 32 2005-10-30 22:05:19Z stefanorausch $
* @link http://pear.php.net/package/ScriptReorganizer
* Extends <kbd>ScriptReorganizer_Type</kbd>
require_once 'ScriptReorganizer/Type.php';
* Base class to be extended by (type) decorators to apply
* All decorators must follow the naming convention
* <kbd>ScriptReorganizer_Type_Decorator_<Decorator></kbd>.
* @package ScriptReorganizer
* @author Stefano F. Rausch <stefano@rausch-e.net>
* @copyright 2005 Stefano F. Rausch <stefano@rausch-e.net>
* @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
* @version Release: @package_version@
* @link http://pear.php.net/package/ScriptReorganizer
// {{{ public function __construct( ScriptReorganizer_Type $type )
* @param ScriptReorganizer_Type $type a <kbd>ScriptReorganizer_Type</kbd> to
public function __construct( ScriptReorganizer_Type $type )
// {{{ public function __destruct()
// {{{ public function load( $file )
* Loads the script's content to be reorganized from disk
* @param string $file a string representing the file's name to load
* @throws {@link ScriptReorganizer_Type_Exception ScriptReorganizer_Type_Exception}
public function load( $file )
$this->type->load( $file );
// {{{ public function reformat()
* Reorganizes the script's content by applying the chosen
* {@link ScriptReorganizer_Strategy Strategy}
// {{{ public function save( $file )
* Saves the reorganized script's content to disk
* @param string $file a string representing the file's name to save
* @throws {@link ScriptReorganizer_Type_Exception ScriptReorganizer_Type_Exception}
public function save( $file )
$this->type->save( $file );
// {{{ package function _getContent()
* Gets the script's content currently being reorganized
* @visibility package restricted
* @return string a string representing the script's content
// {{{ package function _setContent( $content )
* Sets the script's content currently being reorganized
* @visibility package restricted
* @param string $content a string representing the content's replacement
// {{{ private properties
* Holds the type to decorate
* @var ScriptReorganizer_Type
* c-hanging-comment-ender-p: nil
Documentation generated on Mon, 11 Mar 2019 14:10:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|