This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function | |
QueryBlender(array $Input): string { | |
/*// | |
use the QueryMerger to output a final string of the merged query. | |
//*/ | |
return http_build_query($this->QueryMerger($Input)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Whatevs { | |
public function | |
__ToString() { | |
/*// | |
try to generate the string we need, else show a fallback. | |
//*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*// | |
this comparing two methods of writing templates. i was indecisive about which | |
style i should use when using datastore capable objects in templates. to decide | |
which way i like i decided to let the numbers speak for themselves. | |
so we have this datastore and to dump it into an html template takes 3 lines of | |
code regardless of which way i do it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<?php if($Shits): ?> | |
<ul> | |
<?php foreach($Shits as $Shit): ?> | |
<li><?php echo $Shit ?></li> | |
<?php endforeach; ?> | |
</ul> | |
<?php else: ?> | |
<div>Aint No Shit</div> | |
<?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="TextAlignCenter"> | |
<?php $element->Items->Each(function($Value){ ?> | |
<li><?php echo $Value->Name ?></li> | |
<?php }); ?> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Whatever() { | |
return <<< EOF | |
<div class="All"> | |
<div class="OfThe"> | |
HTML | |
</div> | |
</div> | |
EOF; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function | |
Render() { | |
if(is_array($this->Value)) | |
foreach($this->Value as &$Value) | |
$Value = $this->Database->Escape($Value); | |
// ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Scriptname Math Hidden | |
; Calculates the absolute value of the passed in value - N for N, and N for (-N) | |
float Function abs(float afValue) global native | |
; Calculates the arccosine of the passed in value, returning degrees | |
float Function acos(float afValue) global native | |
; Calculates the arcsine of the passed in value, returning degrees | |
float Function asin(float afValue) global native |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$router = (new Nether\Router) | |
->AddRoute('{@}//post/(#)','Routes\Post::ViewByID') | |
->AddRoute('{@}//admin/post(#)','Routes\Admin\Post::ViewByID'); | |
try { $router->Run(); } | |
catch(...) { } | |
catch(...) { } | |
catch(...) { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Nether\Surface\Test; | |
use \Nether; | |
use \PHPUnit_Framework_TestCase; | |
//////// | |
//////// | |
class SurfaceGeneral |