To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 1754 for sandboxes

Show
Ignore:
Timestamp:
07/14/10 12:14:31 (19 months ago)
Author:
johnnyoffline
Message:

i have some modified base classes probably from a build all

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  
    1414  { 
    1515    $this->setWidgets(array( 
     16      'lucene_dirty'          => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))), 
    1617      'type'                  => new sfWidgetFormChoice(array('choices' => array('' => '', 'image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 
    1718      'service_url'           => new sfWidgetFormFilterInput(), 
     
    3334 
    3435    $this->setValidators(array( 
     36      'lucene_dirty'          => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))), 
    3537      'type'                  => new sfValidatorChoice(array('required' => false, 'choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 
    3638      'service_url'           => new sfValidatorPass(array('required' => false)), 
     
    105107    return array( 
    106108      'id'                    => 'Number', 
     109      'lucene_dirty'          => 'Boolean', 
    107110      'type'                  => 'Enum', 
    108111      'service_url'           => 'Text', 
  • sandboxes/asandbox/trunk/lib/form/doctrine/apostrophePlugin/base/BaseaMediaItemForm.class.php

    r1564 r1754  
    1717    $this->setWidgets(array( 
    1818      'id'                    => new sfWidgetFormInputHidden(), 
     19      'lucene_dirty'          => new sfWidgetFormInputCheckbox(), 
    1920      'type'                  => new sfWidgetFormChoice(array('choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 
    2021      'service_url'           => new sfWidgetFormInputText(), 
     
    3738    $this->setValidators(array( 
    3839      '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)), 
    3941      'type'                  => new sfValidatorChoice(array('choices' => array(0 => 'image', 1 => 'video', 2 => 'audio', 3 => 'pdf'))), 
    4042      'service_url'           => new sfValidatorString(array('max_length' => 200, 'required' => false)), 
  • sandboxes/asandbox/trunk/lib/model/doctrine/apostrophePlugin/base/BaseaMediaItem.class.php

    r931 r1754  
    77 *  
    88 * @property integer $id 
     9 * @property boolean $lucene_dirty 
    910 * @property enum $type 
    1011 * @property string $service_url 
     
    2526 *  
    2627 * @method integer             getId()                 Returns the current record's "id" value 
     28 * @method boolean             getLuceneDirty()        Returns the current record's "lucene_dirty" value 
    2729 * @method enum                getType()               Returns the current record's "type" value 
    2830 * @method string              getServiceUrl()         Returns the current record's "service_url" value 
     
    4244 * @method Doctrine_Collection getAMediaItemCategory() Returns the current record's "aMediaItemCategory" collection 
    4345 * @method aMediaItem          setId()                 Sets the current record's "id" value 
     46 * @method aMediaItem          setLuceneDirty()        Sets the current record's "lucene_dirty" value 
    4447 * @method aMediaItem          setType()               Sets the current record's "type" value 
    4548 * @method aMediaItem          setServiceUrl()         Sets the current record's "service_url" value 
     
    7477             'autoincrement' => true, 
    7578             'length' => 4, 
     79             )); 
     80        $this->hasColumn('lucene_dirty', 'boolean', null, array( 
     81             'type' => 'boolean', 
     82             'default' => false, 
    7683             )); 
    7784        $this->hasColumn('type', 'enum', null, array(