- Timestamp:
- 07/14/10 12:14:31 (19 months ago)
- Location:
- sandboxes/asandbox/trunk/lib
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
sandboxes/asandbox/trunk/lib/filter/doctrine/apostrophePlugin/base/BaseaMediaItemFormFilter.class.php
r1354 r1754 14 14 { 15 15 $this->setWidgets(array( 16 'lucene_dirty' => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))), 16 17 'type' => new sfWidgetFormChoice(array('choices' => array('' => '', 'image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 17 18 'service_url' => new sfWidgetFormFilterInput(), … … 33 34 34 35 $this->setValidators(array( 36 'lucene_dirty' => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))), 35 37 'type' => new sfValidatorChoice(array('required' => false, 'choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 36 38 'service_url' => new sfValidatorPass(array('required' => false)), … … 105 107 return array( 106 108 'id' => 'Number', 109 'lucene_dirty' => 'Boolean', 107 110 'type' => 'Enum', 108 111 'service_url' => 'Text', -
sandboxes/asandbox/trunk/lib/form/doctrine/apostrophePlugin/base/BaseaMediaItemForm.class.php
r1564 r1754 17 17 $this->setWidgets(array( 18 18 'id' => new sfWidgetFormInputHidden(), 19 'lucene_dirty' => new sfWidgetFormInputCheckbox(), 19 20 'type' => new sfWidgetFormChoice(array('choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 20 21 'service_url' => new sfWidgetFormInputText(), … … 37 38 $this->setValidators(array( 38 39 'id' => new sfValidatorChoice(array('choices' => array($this->getObject()->get('id')), 'empty_value' => $this->getObject()->get('id'), 'required' => false)), 40 'lucene_dirty' => new sfValidatorBoolean(array('required' => false)), 39 41 'type' => new sfValidatorChoice(array('choices' => array(0 => 'image', 1 => 'video', 2 => 'audio', 3 => 'pdf'))), 40 42 'service_url' => new sfValidatorString(array('max_length' => 200, 'required' => false)), -
sandboxes/asandbox/trunk/lib/model/doctrine/apostrophePlugin/base/BaseaMediaItem.class.php
r931 r1754 7 7 * 8 8 * @property integer $id 9 * @property boolean $lucene_dirty 9 10 * @property enum $type 10 11 * @property string $service_url … … 25 26 * 26 27 * @method integer getId() Returns the current record's "id" value 28 * @method boolean getLuceneDirty() Returns the current record's "lucene_dirty" value 27 29 * @method enum getType() Returns the current record's "type" value 28 30 * @method string getServiceUrl() Returns the current record's "service_url" value … … 42 44 * @method Doctrine_Collection getAMediaItemCategory() Returns the current record's "aMediaItemCategory" collection 43 45 * @method aMediaItem setId() Sets the current record's "id" value 46 * @method aMediaItem setLuceneDirty() Sets the current record's "lucene_dirty" value 44 47 * @method aMediaItem setType() Sets the current record's "type" value 45 48 * @method aMediaItem setServiceUrl() Sets the current record's "service_url" value … … 74 77 'autoincrement' => true, 75 78 'length' => 4, 79 )); 80 $this->hasColumn('lucene_dirty', 'boolean', null, array( 81 'type' => 'boolean', 82 'default' => false, 76 83 )); 77 84 $this->hasColumn('type', 'enum', null, array(

