This file contains 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
[02:16:38] Limping immortal: nemel bych kosat ten kabel od sluchatek | |
[02:17:20] Limping immortal: nekose to | |
[02:17:21] Limping immortal: fuj | |
[02:17:28] Limping immortal: vyplivni | |
[02:17:31] Limping immortal: hned | |
[02:17:38] Limping immortal: hodnej |
This file contains 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 | |
abstract class BaseModel extends Object | |
{ | |
/** @var Model instance */ | |
static $register = array(); | |
This file contains 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 // WTF?! | |
require_once __DIR__ . '/Nette/loader.php'; | |
define('T1', pow(2, 0)); | |
define('T2', pow(2, 1)); | |
define('T3', pow(2, 2)); | |
define('T4', pow(2, 3)); | |
define('T5', pow(2, 4)); | |
define('T6', pow(2, 5)); |
This file contains 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 | |
abstract class Dependencies extends \Nette\Object | |
{ | |
/** | |
* Package version | |
*/ | |
//const VERSION = 0; // 1.0.0 |
This file contains 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 | |
private function getExtension($name) | |
{ | |
if( !isset($this->extensions[$name]) ){ | |
$classes = array_keys($this->getRobotLoader()->indexedClasses); | |
foreach( $classes AS $item ){ //echo "<hr>"; _dump($item); | |
if( $match = String::match($item, '~^kdyby\\\\(?P<type>modifications|addons)\\\\(?P<name>[^\\\\]+)\\\\loader$~i') ){ |
This file contains 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 Nette\Templates; | |
use Nette\Forms\Form; | |
use Nette\String; | |
/** | |
* Form macros | |
* |
This file contains 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 CallbackBody extends Callback | |
{ | |
public function __construct($paramList, $code, $param1 = null, $param2 = null, $param3 = null) | |
{ | |
$params = func_get_args(); | |
$params = array_slice($params, 2); | |
$this->callback = create_function($paramList, $code); | |
$this->params = $params; |
This file contains 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 NetteExtras\Forms; | |
class ChangeTracker extends \Nette\Forms\HiddenField | |
{ | |
private $session; | |
private $modifiedValues; |
This file contains 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
{foreach $blocks as $block}<div {attr id($block->id) class($block->classes)} n:tag-if="$block->hasContainer"> | |
{foreach $block->components as $component} | |
{control $component->name:$component->render, $component->params} | |
{/foreach} | |
</div>{/foreach} |
This file contains 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 getPersistentDefaults() | |
{ | |
$defaults = array(); | |
foreach ($this->getReflection()->getPersistentParams() as $nm => $meta) | |
$defaults[$nm] = $meta['def']; | |
} | |
return $defaults; |