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 defined('SYSPATH') or die('No direct script access.'); | |
class Model_Bla extends ORM { | |
public function rules() | |
{ | |
return array( | |
'phone_one' => array( | |
array('at_least', array(':validation', 1, array('phone_one', 'phone_two', 'phone_three'))), | |
), |
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 defined('SYSPATH') or die('No direct script access.'); | |
/** | |
* | |
* | |
* @package OAuth2 | |
* @category Library | |
* @author Managed I.T. | |
* @copyright (c) 2011 Managed I.T. | |
*/ |
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
#!/bin/bash | |
# | |
# This script is similar to minion but will do a few additional things: | |
# - PHP process is run in the background | |
# - PHP process is monitored and restarted if it exits for any reason | |
# - Added handlers for SUGHUP, SIGINT, and SIGTERM | |
# | |
# This is meant for long running minion tasks (like background workers). | |
# Shutting down the minion tasks is done by sending a SIGINT or SIGTERM signal | |
# to this miniond process. You can also restart the minion task by sending a |
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 defined('SYSPATH') or die('No direct script access.'); | |
class TicketsCommentsStatusesLabels extends Doctrine_Migration_Base | |
{ | |
public function up() | |
{ | |
// Types | |
$int = array('type' => 'integer', 'length' => 8); | |
$varchar = array('type' => 'varchar', 'length' => 255); | |
$text = array('type' => 'text'); |