Class Nexista_PathBuilder

Description

This class Nexista_provides functionality to create strings that will resolve

into functional paths/value at runtime. This is the same process as the Path class, however it does not evaluate the expression but rather returns a string that is inserted in the compiled files that will resolved at runtime. See Path class Nexista_for information on protocols handled.

Located in /kernel/pathbuilder.php (line 48)


	
			
Variable Summary
 array $joins
Method Summary
 void get (string $path, [string $protocol = 'string'], [integer $joinStyle = JOIN_NONE])
 string parseInlineFlow (string $string, [constant $joinStyle = JOIN_NONE])
 string transformPath (string $string, [constant $joinStyle = JOIN_NONE])
Variables
array $joins = array(
JOIN_SINGLE_QUOTE => "'",
JOIN_DOUBLE_QUOTE => '"',
JOIN_NONE => '')
(line 64)

String concatenation style for inline flow elements

When a path containes an inline flow expression such as: "http://path{inline/flow}/here" the final rendering must join a string with the resolved flow expression: "http://path".Flow::getVar('inline/flow')."/here" The quote style depends on the calling expression so it must be determined when calling the Resolver::get function for applicable situtations.

  • access: public
Methods
get (line 78)

Returns a string based on given protocol://path

  • access: public
void get (string $path, [string $protocol = 'string'], [integer $joinStyle = JOIN_NONE])
  • string $path: path to resolve/render
  • string $protocol: optional default protocol if none given
  • integer $joinStyle: joining style constant
parseInlineFlow (line 251)

Resolves inline flow vars.

This method will look for curly bracketed values in a string and return a flow expression.

  • return: path with inline flow expressions
  • access: public
string parseInlineFlow (string $string, [constant $joinStyle = JOIN_NONE])
  • string $string: path to analyze
  • constant $joinStyle: string joining style for {flow} inline expressions
transformPath (line 192)

Transforms a slash path into an associative array string

This method accepts a path such as /this/is/it and will return an array string (i.e. ['this']['is']['it']) for later evaluation.

  • return: array expression string
  • access: public
string transformPath (string $string, [constant $joinStyle = JOIN_NONE])
  • string $string: string to transform
  • constant $joinStyle: string joining style for {flow} inline expressions

Documentation generated on Tue, 11 Mar 2008 23:23:09 -0400 for Nexista 0.2.0