Skip to content

Commit

Permalink
Update version no, refine src code comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordemooij committed Mar 28, 2021
1 parent 45332d4 commit e31aad3
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RedBeanPHP/Facade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* RedBean Facade
*
* Version Information
* RedBean Version @version 5.6
* RedBean Version @version 5.7
*
* This class hides the object landscape of
* RedBeanPHP behind a single letter class providing
Expand All @@ -49,7 +49,7 @@ class Facade
/**
* RedBeanPHP version constant.
*/
const C_REDBEANPHP_VERSION = '5.6';
const C_REDBEANPHP_VERSION = '5.7';

/**
* @var ToolBox
Expand Down
14 changes: 14 additions & 0 deletions RedBeanPHP/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ function array_flatten( $array )

/**
* Function pstr() generates [ $value, \PDO::PARAM_STR ]
* Ensures that your parameter is being treated as a string.
*
* Usage:
*
* <code>
* R::find('book', 'title = ?', [ pstr('1') ]);
* </code>
*/
if ( !function_exists( 'pstr' ) ) {

Expand All @@ -91,6 +98,13 @@ function pstr( $value )

/**
* Function pint() generates [ $value, \PDO::PARAM_INT ]
* Ensures that your parameter is being treated as an integer.
*
* Usage:
*
* <code>
* R::find('book', ' pages > ? ', [ pint(2) ] );
* </code>
*/
if ( !function_exists( 'pint' ) ) {

Expand Down
4 changes: 4 additions & 0 deletions RedBeanPHP/Plugin/SQN.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
*
* Usage:
*
* <code>
* R::sqn('shop<product<price'); - left joins shop, product and price
* R::sqn('book<<tag'); - doubly left joins book, and tag using book_tag
* </code>
*
* SQN assumes id fields follow the following conventions:
*
Expand All @@ -23,7 +25,9 @@
*
* SQN can also generate additional aliases:
*
* <code>
* R::sqn( ..., 'area/x,y;place/x,y' ) - area_x area_y place_x place_y
* </code>
*
* @author Gabor de Mooij
* @license BSD/GPLv2
Expand Down
2 changes: 2 additions & 0 deletions RedBeanPHP/QueryWriter/AQueryWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,10 @@ abstract class AQueryWriter
* For instance to add ROW_FORMAT=DYNAMIC to all MySQL tables
* upon creation:
*
* <code>
* $sql = $writer->getDDLTemplate( 'createTable', '*' );
* $writer->setDDLTemplate( 'createTable', '*', $sql . ' ROW_FORMAT=DYNAMIC ' );
* </code>
*
* For property-specific templates set $beanType to:
* account.username -- then the template will only be applied to SQL statements relating
Expand Down

0 comments on commit e31aad3

Please sign in to comment.