Skip to content

Instantly share code, notes, and snippets.

View hrach's full-sized avatar

Jan Škrášek hrach

View GitHub Profile
@hrach
hrach / form-macros.php
Created February 18, 2012 15:20
FormMacros old for Nette 1.0
<?php
namespace Nette\Templates;
use Nette;
use Nette\String;
use Nette\Forms\Form;
/**
* Form macros
*
@hrach
hrach / BasePresenter.php
Created December 31, 2011 20:12
Secured signlas - old NETTE!
<?php
/**
* Signály.cz – JP2
* ----------------
*
* @license MIT License http://en.wikipedia.org/wiki/MIT_License
* @link http://signaly.cz
*/
use Nette;
@hrach
hrach / delete.php
Created March 19, 2011 16:27
Rekurzivní smazání adresáře v Nette
<?php
$dirContent = Finder::find('*')->from($directory)->childFirst();
foreach ($dirContent as $file) {
if ($file->isDir())
@rmdir($file->getPathname());
else
@unlink($file->getPathname());
}
<?php
var_dump('12:00' > '11:59');
var_dump('11:30' > '11:29:00');
var_dump('11:30' > '11:30:00');
var_dump('11:30' >= '11:30:00');