X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fgabordemooij%2Fredbean%2FRedBeanPHP%2FFunctions.php;fp=vendor%2Fgabordemooij%2Fredbean%2FRedBeanPHP%2FFunctions.php;h=0000000000000000000000000000000000000000;hp=b66c4c5a23dee65f7cdadfd6e81debbc6f87bb16;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/gabordemooij/redbean/RedBeanPHP/Functions.php b/vendor/gabordemooij/redbean/RedBeanPHP/Functions.php deleted file mode 100644 index b66c4c5a2..000000000 --- a/vendor/gabordemooij/redbean/RedBeanPHP/Functions.php +++ /dev/null @@ -1,78 +0,0 @@ - - * R::find( 'paint', ' color_id = ? ', [ EID('color:yellow') ] ); - * - * - * If a function called EID() already exists you'll have to write this - * wrapper yourself ;) - * - * @param string $enumName enum code as you would pass to R::enum() - * - * @return mixed - */ -if (!function_exists('EID')) { - - function EID($enumName) - { - return \RedBeanPHP\Facade::enum( $enumName )->id; - } - -} - -/** - * Prints the result of R::dump() to the screen using - * print_r. - * - * @param mixed $data data to dump - * - * @return void - */ -if ( !function_exists( 'dmp' ) ) { - - function dmp( $list ) - { - print_r( \RedBeanPHP\Facade::dump( $list ) ); - } -} - -/** - * Function alias for R::genSlots(). - */ -if ( !function_exists( 'genslots' ) ) { - - function genslots( $slots, $tpl = NULL ) - { - return \RedBeanPHP\Facade::genSlots( $slots, $tpl ); - } -} - -/** - * Function alias for R::flat(). - */ -if ( !function_exists( 'array_flatten' ) ) { - - function array_flatten( $array ) - { - return \RedBeanPHP\Facade::flat( $array ); - } -}