To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
Changeset 1071
- Timestamp:
- 04/27/10 14:25:35 (22 months ago)
- Author:
- johnnyoffline
- Message:
-
Blog migration and build all classes
- Location:
- sandboxes/asandbox/trunk/lib
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r932
|
r1071
|
|
| 17 | 17 | 'page_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Page'), 'add_empty' => true)), |
| 18 | 18 | 'title' => new sfWidgetFormFilterInput(array('with_empty' => false)), |
| | 19 | 'slug_saved' => new sfWidgetFormChoice(array('choices' => array('' => 'yes or no', 1 => 'yes', 0 => 'no'))), |
| 19 | 20 | 'excerpt' => new sfWidgetFormFilterInput(), |
| 20 | 21 | 'status' => new sfWidgetFormChoice(array('choices' => array('' => '', 'draft' => 'draft', 'pending review' => 'pending review', 'published' => 'published'))), |
| … |
… |
|
| 36 | 37 | 'page_id' => new sfValidatorDoctrineChoice(array('required' => false, 'model' => $this->getRelatedModelName('Page'), 'column' => 'id')), |
| 37 | 38 | 'title' => new sfValidatorPass(array('required' => false)), |
| | 39 | 'slug_saved' => new sfValidatorChoice(array('required' => false, 'choices' => array('', 1, 0))), |
| 38 | 40 | 'excerpt' => new sfValidatorPass(array('required' => false)), |
| 39 | 41 | 'status' => new sfValidatorChoice(array('required' => false, 'choices' => array('draft' => 'draft', 'pending review' => 'pending review', 'published' => 'published'))), |
| … |
… |
|
| 104 | 106 | 'page_id' => 'ForeignKey', |
| 105 | 107 | 'title' => 'Text', |
| | 108 | 'slug_saved' => 'Boolean', |
| 106 | 109 | 'excerpt' => 'Text', |
| 107 | 110 | 'status' => 'Enum', |
-
|
r932
|
r1071
|
|
| 20 | 20 | 'page_id' => new sfWidgetFormDoctrineChoice(array('model' => $this->getRelatedModelName('Page'), 'add_empty' => true)), |
| 21 | 21 | 'title' => new sfWidgetFormInputText(), |
| | 22 | 'slug_saved' => new sfWidgetFormInputCheckbox(), |
| 22 | 23 | 'excerpt' => new sfWidgetFormTextarea(), |
| 23 | 24 | 'status' => new sfWidgetFormChoice(array('choices' => array('draft' => 'draft', 'pending review' => 'pending review', 'published' => 'published'))), |
| … |
… |
|
| 40 | 41 | 'page_id' => new sfValidatorDoctrineChoice(array('model' => $this->getRelatedModelName('Page'), 'required' => false)), |
| 41 | 42 | 'title' => new sfValidatorString(array('max_length' => 255)), |
| | 43 | 'slug_saved' => new sfValidatorBoolean(array('required' => false)), |
| 42 | 44 | 'excerpt' => new sfValidatorString(array('required' => false)), |
| 43 | 45 | 'status' => new sfValidatorChoice(array('choices' => array(0 => 'draft', 1 => 'pending review', 2 => 'published'), 'required' => false)), |
-
|
r932
|
r1071
|
|
| 10 | 10 | * @property integer $page_id |
| 11 | 11 | * @property string $title |
| | 12 | * @property boolean $slug_saved |
| 12 | 13 | * @property string $excerpt |
| 13 | 14 | * @property enum $status |
| … |
… |
|
| 29 | 30 | * @method integer getPageId() Returns the current record's "page_id" value |
| 30 | 31 | * @method string getTitle() Returns the current record's "title" value |
| | 32 | * @method boolean getSlugSaved() Returns the current record's "slug_saved" value |
| 31 | 33 | * @method string getExcerpt() Returns the current record's "excerpt" value |
| 32 | 34 | * @method enum getStatus() Returns the current record's "status" value |
| … |
… |
|
| 47 | 49 | * @method aBlogItem setPageId() Sets the current record's "page_id" value |
| 48 | 50 | * @method aBlogItem setTitle() Sets the current record's "title" value |
| | 51 | * @method aBlogItem setSlugSaved() Sets the current record's "slug_saved" value |
| 49 | 52 | * @method aBlogItem setExcerpt() Sets the current record's "excerpt" value |
| 50 | 53 | * @method aBlogItem setStatus() Sets the current record's "status" value |
| … |
… |
|
| 91 | 94 | 'length' => 255, |
| 92 | 95 | )); |
| | 96 | $this->hasColumn('slug_saved', 'boolean', null, array( |
| | 97 | 'type' => 'boolean', |
| | 98 | 'default' => false, |
| | 99 | )); |
| 93 | 100 | $this->hasColumn('excerpt', 'string', null, array( |
| 94 | 101 | 'type' => 'string', |
| … |
… |
|
| 177 | 184 | $taggable0 = new Taggable(); |
| 178 | 185 | $sluggable0 = new Doctrine_Template_Sluggable(array( |
| 179 | | 'canUpdate' => true, |
| | 186 | 'fields' => |
| | 187 | array( |
| | 188 | 0 => 'title', |
| | 189 | ), |
| | 190 | 'builder' => |
| | 191 | array( |
| | 192 | 0 => 'aTools', |
| | 193 | 1 => 'slugify', |
| | 194 | ), |
| 180 | 195 | )); |
| 181 | 196 | $this->actAs($timestampable0); |
Download in other formats: