Author: Raymond Bosman
Date: 2006-12-21 14:16:31 +0100 (Thu, 21 Dec 2006)
New Revision: 4433
Log:
- Fixed doc blocks.
Modified:
trunk/Template/src/compiled_code.php
trunk/Template/src/source_code.php
Modified: trunk/Template/src/compiled_code.php
===================================================================
--- trunk/Template/src/compiled_code.php 2006-12-21 13:01:13 UTC (rev
4432)
+++ trunk/Template/src/compiled_code.php 2006-12-21 13:16:31 UTC (rev
4433)
@@ -205,18 +205,6 @@
}
/**
- * Returns a list of variable (PHP) names which are reserved when executing
- * compiled code. The compiler must make sure none of these are used when
- * generating local PHP variables.
- *
- * @return array
- */
- /* public static function reservedVariableNames()
- {
- return array( 'template', 'context', 'execution', 'this' );
- }
-*/
- /**
* Returns true if the compiled code exists and is valid for execution.
*
* @return bool
Modified: trunk/Template/src/source_code.php
===================================================================
--- trunk/Template/src/source_code.php 2006-12-21 13:01:13 UTC (rev 4432)
+++ trunk/Template/src/source_code.php 2006-12-21 13:16:31 UTC (rev 4433)
@@ -54,67 +54,36 @@
*
* To check if any source code has been loaded or set use hasCode().
*
+ * @property string stream
+ * The PHP stream path for the template source file.
+ * @property string resource
+ * The resource string which requested this template.
+ * @property string code
+ * The original template code taken from the template file or
+ * other resource. Contains a string with the source code or
+ * false if no code is read yet.
+ * @property ezcTemplateOutputContext context
+ * The current context for the template code. Will be used for
+ * parsing and run-time behaviour.
+ *
* @package Template
* @version //autogen//
* @access private
*/
class ezcTemplateSourceCode
{
-
/**
- * The PHP stream path for the template source file.
+ * Array that stores the property values.
*
- * Note: Use isAvailable() to check if it actually can be read.
- *
- * @var string
- * Note: __get/__set property
+ * @var array(string=>mixed)
*/
- // private $stream;
-
- /**
- * The resource string which requested this template.
- *
- * Note: Should be the same as $stream if no specific resource string is
- * known.
- *
- * @var string
- * Note: __get/__set property
- */
- // private $resource;
-
- /**
- * The original template code taken from the template file or other
- * resource. Contains a string with the source code or false if no code is
- * read yet.
- *
- * @var string
- * Note: __get/__set property
- */
- // private $code;
-
- /**
- * The current context for the template code. Will be used for parsing and
- * run-time behaviour.
- *
- * @var ezcTemplateOutputContext
- * Note: __get/__set property
- */
- // private $context;
-
- /**
- * An array containing the properties of this object.
- * stream - The PHP stream path for the template source file.
- * resource - The resource string which requested this template.
- * code - The original template code taken from the template file or
- * other resource. Contains a string with the source code or
- * false if no code is read yet.
- * context - The current context for the template code. Will be used for
- * parsing and run-time behaviour.
- */
private $properties = array();
/**
* Property get
+ *
+ * @param string $name
+ * @return mixed
*/
public function __get( $name )
{
@@ -132,6 +101,10 @@
/**
* Property set
+ *
+ * @param string $name
+ * @param mixed $value
+ * @return void
*/
public function __set( $name, $value )
{
@@ -150,6 +123,9 @@
/**
* Property isset
+ *
+ * @param string $name
+ * @return bool
*/
public function __isset( $name )
{
@@ -196,6 +172,7 @@
*
* Note: Calling this multiple times will re-init the $source variable.
*
+ * @return void
*/
public function load()
{
@@ -221,6 +198,8 @@
*
* Note: Calling this multiple times will overwrite the file contents over
and
* over again. And the backup contains the same information as the
original.
+ *
+ * @return void
*/
public function save()
{
@@ -267,6 +246,7 @@
*
* @see isAvailable()
*
+ * @return void
*/
public function delete()
{
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components