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
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS procEnableKeysOnAllTables $$ | |
CREATE PROCEDURE procEnableKeysOnAllTables() | |
BEGIN | |
DECLARE table_name VARCHAR(255); | |
DECLARE end_of_tables INT DEFAULT 0; |
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 | |
use Symfony\Component\EventDispatcher\Event; | |
use Symfony\Component\EventDispatcher\EventDispatcher; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
class MyListener | |
{ | |
public function onFooAction(Event $event) |
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 | |
function is_natural($val, $acceptzero = false) | |
{ | |
$return = ((string) $val === (string) (int) $val); | |
if ($acceptzero) { | |
$base = 0; | |
} else { | |
$base = 1; | |
} |
NewerOlder