Strings
[ class tree: Strings ] [ index: Strings ] [ all elements ]

Class: PHPCode

Source Location: /PHPCode.php

Class Overview

Strings
   |
   --PHPCode

Created on 1 april 09


Author(s):

Version:

  • 2.0

Variables

Methods


Child classes:

Classes
Created on 1 april 09
Comments
Created on 1 april 09

Inherited Variables

Inherited Methods

Class: Strings

Strings::__construct()
Construction function
Strings::console()
Console function
Strings::IsUTF8()
UTF8 detection function
Strings::QuoteStrip()
Quotes stripping function
Strings::RemoveAccent()
Accents removal function
Strings::RemoveSpaces()
Spaces removal function
Strings::stringHasNumbers()
Numbers detection function
Strings::ToUTF8()
UTF8 conversion function
Strings::ucwordsw()
Special uppercase function

Class Details

[line 16]
Created on 1 april 09

This class manages PHP Code objects.

Changes: 1.0 to 2.0: phpdoc compatible in the way to generate documentation




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  2.0
license:  GNU Public License


[ Top ]


Class Variables

$aEnd_tags = array("?>","?>")

[line 27]

Variable that contains PHP close tags



Tags:

access:  protected

Type:   array


[ Top ]

$aPHPCode = array()

[line 33]

Variable that contains PHP result code



Tags:

access:  public

Type:   array


[ Top ]

$aStart_tags = array("<?php","<?")

[line 22]

Variable that contains PHP open tags



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


method getCode [line 65]

object getCode( string $this->value)

Code obtention function

This function is used to get PHP code from a string ($this->value) Result is stored in $this->aPHPCode

  1.  <?php
  2.  $oPHPCode        new PHPCode();
  3.  $oPHPCode->value    'ab <?php echo "Test"; ?> foo <? print_r($value); ?>';
  4.  $oPHPCode->getCode();
  5.  echo $oPHPCode->aPHPCode[0];
  6.  // echo "Test";
  7.  echo $oPHPCode->aPHPCode[1];
  8.  // print_r($value);
  9.  ?>




Tags:

return:  object
staticvar:  array $this->aStart_tags: array containing open PHP tags
staticvar:  array $this->aEnd_tags: array containing end PHP tags
since:  Version 1.0
uses:  STRregexs::ProtectRegex()


Parameters:

string   $this->value   text to be processed (required)

[ Top ]


Documentation generated on Wed, 26 Aug 2009 12:30:31 +0200 by phpDocumentor 1.4.1