Skip to content

Instantly share code, notes, and snippets.

@foowie
foowie / ResultMessage.php
Created September 26, 2011 19:18
ResultMessage
<?php
class ResultMessages extends Object {
const TYPE_INFO = "info";
const TYPE_WARNING = "warning";
const TYPE_ERROR = "error";
/** array(message, type, error-persistent) */
protected $messages = array();
protected $data = null;
@foowie
foowie / Timer.php
Created January 22, 2011 14:20
Class for time measuring
<?php
/**
* @author Daniel Robenek
* @license MIT
* @since 2011
*/
namespace Debug;
@foowie
foowie / ControlActionSecurer.php
Created January 22, 2011 14:01
Class that check if component creation is allowed in current action
<?php
/**
* @author Daniel Robenek
* @license MIT
* @since 2011
*/
/**
Presenter:
@foowie
foowie / ExamplePresenter.php
Created December 4, 2010 15:36
DependentSelectBox and DynamicContainer presenter example
<?php
use Nette\Application\Presenter;
use Nette\Application\AppForm;
use Nette\Forms\Form;
use DependentSelectBox\DependentSelectBox;
use DependentSelectBox\JsonDependentSelectBox;
use Nette\Forms\FormContainer;
class ExamplePresenter extends Presenter {