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 BasePresenter extends Presenter | |
{ | |
// ... | |
protected function beforeRender() | |
{ | |
// ... |
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 MyPresenter extends BasePresenter | |
{ | |
protected function createComponentSomeForm() | |
{ | |
$form = new AppForm(); | |
// ... | |
return $form; | |
} |
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 hledej($vyraz, $sloupec) | |
{ | |
$conditions = array(); | |
if ($sloupec == 'K') { | |
for ($i = 1; $i <= 4; ++$i) | |
$conditions[] = array('%n LIKE %s', $sloupec . $i, '%' . $vyraz . '%'); | |
} else { | |
$conditions[] = array('%n LIKE %s', $sloupec, '%' . $vyraz . '%'); |
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 | |
final class HomePresenter extends BasePresenter{ | |
protected function startup(){ | |
parent::startup(); | |
$this->template->test = 'TestStartup'; | |
} | |
public function createComponentForm(){ | |
$form = new AppForm(); |
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 | |
// ... | |
dibi::connect(array( | |
// ... | |
'profiler' => TRUE | |
// ... | |
)); |
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
[xdebug] | |
xdebug.remote_enable = 1 | |
xdebug.remote_host = 127.0.0.1 | |
xdebug.remote_port = 9000 | |
xdebug.remote_handler = dbgp |
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 TestPresenter extends BasePresenter | |
{ | |
/** | |
* @var DibiResult | |
*/ | |
protected $items; | |
public function actionDefault() |
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 SomePresenter extends BasePresenter | |
{ | |
/** @var DibiRow */ | |
private $item; | |
/** @var SessionNamespace */ | |
private $session; |
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 MyDataSource extends DibiDataSource | |
{ | |
public function getResult() | |
{ | |
$result = parent::getResult(); | |
$result->setRowClass('<CLASS>'); | |
return $result; | |
} |
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 | |
$iterator = new \DirectoryIterator($dir); | |
foreach ($iterator as $file) { | |
/* @var $file \SplFileInfo */ | |
} |
OlderNewer