Overview

Namespaces

  • Deimos
    • Flow
      • Extension
        • TBlock
        • TFor
        • TForeach
        • TIF
        • TLiteral
        • TPHP
        • TSimple
        • TTry
        • TWhile
      • Traits
  • PHP

Classes

  • Block
  • Configure
  • DefaultConfig
  • DefaultContainer
  • Flow
  • FlowForeach
  • FlowFunction
  • ForeachState
  • Lexer
  • LexerConst
  • Tokenizer
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class Flow

Namespace: Deimos\Flow
Located at Flow/Flow.php
Methods summary
public
# __construct( Deimos\Flow\Configure $configure = null )

Flow constructor.

Flow constructor.

Parameters

$configure
public
# setTemplateDir( string $path )

Parameters

$path

Returns


$this

Throws

InvalidArgumentException
public
# setCompileDir( string $path )

Parameters

$path

Returns


$this

Throws

InvalidArgumentException
protected string
# view( string $view = null )

Parameters

$view

Returns

string

Throws

InvalidArgumentException
public string
# selectView( )

Returns

string
protected string
# cachePath( )

Returns

string

Throws

InvalidArgumentException
protected integer
# saveCache( )

Returns

integer

Throws

InvalidArgumentException
protected string
# curView( )

Returns

string
protected array
# lexer( string $compile )

Parameters

$compile

Returns

array

Throws

InvalidArgumentException
protected string
# removeComments( $view )

Parameters

$view

Returns

string
protected string
# removePhpTags( $view )

Parameters

$view

Returns

string
protected
# literal( $view )
protected string
# token( string $command )

Parameters

$command

Returns

string

Throws

InvalidArgumentException
protected string
# quote( $command )

Parameters

$command

Returns

string
protected string
# replace( string $command, string $data, string $text, integer $limit = -1 )

Parameters

$command
$data
$text
$limit

Returns

string
protected string
# replaceOne( string $command, string $data, string $text )

Parameters

$command
$data
$text

Returns

string
protected mixed|string
# compile( )

Returns

mixed|string

Throws

InvalidArgumentException
public mixed
# __get( $name )

Parameters

$name

Returns

mixed
public
# __set( $name, $value )

Parameters

$name
$value
public
# assign( $name, $value )

Parameters

$name
$value
public boolean
# __isset( $name )

Parameters

$name

Returns

boolean
public string
# checkView( string $view )

Parameters

$view

Returns

string

Throws

InvalidArgumentException
public string
# parse( $view )

Parameters

$view

Returns

string

Throws

InvalidArgumentException
public integer
# random( )

Returns

integer
public string
# render( string $view )

Parameters

$view

Returns

string

Throws

InvalidArgumentException
Properties summary
protected Deimos\Flow\Configure $configure
#
protected string $viewPath
#
protected string $cachePath
#
protected string $view
#
protected string $curView
#
public Deimos\Flow\FlowForeach $foreach
#
API documentation generated by ApiGen