View gist:549493
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 BaseForm extends sfFormSymfony | |
{ | |
static protected $user = null; | |
static public function getUser() | |
{ | |
return self::$user; | |
} |
View gist:549509
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
*/ | |
class OrdinativiHealthStateForm extends BaseOrdinativiHealthStateForm | |
{ | |
public function configure() | |
{ | |
$this->useFields(array('name')); | |
$this->widgetSchema->setLabels(array( | |
'name' => 'Nome', | |
)); |
View gist:549522
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 BaseForm extends sfFormSymfony | |
{ | |
static protected $user = null; | |
static public function getUser() | |
{ | |
return self::$user; | |
} |
View gist:549524
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 BaseForm extends sfFormSymfony | |
{ | |
static protected $user = null; | |
static public function getUser() | |
{ | |
return self::$user; | |
} |
View gist:549638
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 | |
/** | |
* healthstate actions. | |
* | |
* @package ordinativi | |
* @subpackage healthstate | |
* @author KEY5 | |
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ |
View gist:557848
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
OrdinativiMenuItem: | |
actAs: { Timestampable: ~ } | |
columns: | |
menu_id: { type: integer, notnull: true, default: 0 } | |
name: { type: string(255), notnull: true } | |
type: { type: string(3) } | |
state: { type: integer, notnull: true, default: 0 } | |
enabled: { type: boolean, notnull: true, default: 0 } | |
relations: | |
OrdinativiHealthState: { type: many, foreignType: one, class: OrdinativiHealthState, local: state, foreign: id, onDelete: CASCADE, foreignAlias: OrdinativiHealthStates } |
View prova.php
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 | |
$foods = Doctrine_Query::create() | |
->from('OrdinativiMenuItemDay a') | |
->leftJoin('a.MenuItemDays m') | |
->where('a.menu_id = ? ', $menu_id ); | |
var_dump($foods->fetchArray()); |
OlderNewer