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
/* via http://blog.mostof.it/a-basic-css3-reset/ */ | |
/* had no opportunity to use it yet */ | |
* { outline: 0; } | |
html, body { min-height: 100%; } | |
body, ul, ol, dl { margin: 0; } | |
img { border: 0; } | |
article, aside, audio, footer, header, nav, section, video { display: block } | |
input[type="submit"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner { border : 0px; } | |
input[type="search"] { -webkit-appearance: textfield; } |
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
public void printAccounts() { | |
for (int i = 0; i < accounts.length; i++) { | |
// schleifenlogik | |
Account currentAccount = accounts[i]; | |
Customer owner = currentAccount.getOwner(); | |
Integer id = currentAccount.getId(); |
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 | |
// Define path to application directory | |
defined('APPLICATION_PATH') | |
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')); | |
// Configure the include path. | |
$zendFrameworkPath = realpath(APPLICATION_PATH . '/../../zf/1.11.6'); | |
if ($zendFrameworkPath === false) { |
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 | |
if(isset($someArray) && is_array($someArray) | |
&& array_key_exists('firstKey', $someArray) | |
&& array_key_exists('secondKey', $someArray['firstKey']) | |
&& array_key_exists('thirdKey', $someArray['firstKey']['secondKey'])) { | |
echo $someArray['firstKey']['secondKey']['thirdKey']; | |
} |
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
if(!empty($someArray['firstKey']['secondKey']['thirdKey'])) { | |
echo $someArray['firstKey']['secondKey']['thirdKey']; | |
} |
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 | |
if(!empty($someArray['firstKey']['secondKey']['thirdKey'])) { | |
echo $someArray['firstKey']['secondKey']['thirdKey']; | |
} |
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 | |
$configuration = array( | |
'projectName' => 'double-ypsilon', | |
'useCaching' => true, | |
); |
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 markActiveNode($navigation, $currentUrl) | |
{ | |
if(!empty($navigation['nodes']) && is_array($navigation['nodes']) { | |
foreach ($navigation['nodes'] as $node) { | |
$node['isActive'] = false; | |
if(!empty($node['url'])) { | |
if($node['isVisible']) { | |
$node['isActive'] = ($node['url'] === $currentUrl); |
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 markActiveNode($navigation, $currentUrl) | |
{ | |
if(empty($navigation['nodes']) or !is_array($navigation['nodes']) { | |
return $navigation; | |
} | |
foreach ($navigation['nodes'] as $node) { | |
$node['isActive'] = false; |
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 | |
foreach ($navigation['nodes'] as $node) { | |
$node['isActive'] = false; | |
if(empty($node['url'])) { | |
continue; | |
} | |
if($node['isVisible']) { |
OlderNewer