PHP Class Prado\Data\SqlMap\Configuration\TInlineParameterMapParser

The inline parameter map syntax lets you embed the property name, the property type, the column type, and a null value replacement into a parametrized SQL statement.
Since: 3.1
Datei anzeigen Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
parse ( $sqlText, $scope ) : array Parse the sql text for inline parameters.

Protected Methods

Method Description
parseMapping ( $token, $scope ) Parse inline parameter with syntax as #propertyName,type=string,dbype=Varchar,nullValue=N/A,handler=string#

Method Details

parse() public method

Parse the sql text for inline parameters.
public parse ( $sqlText, $scope ) : array
return array 'sql' and 'parameters' name value pairs.

parseMapping() protected method

Parse inline parameter with syntax as #propertyName,type=string,dbype=Varchar,nullValue=N/A,handler=string#
protected parseMapping ( $token, $scope )