- Timestamp:
- 07/12/10 12:10:49 (19 months ago)
- Location:
- sandboxes/asandbox/branches/1.4
- Files:
-
- 4 modified
-
data/fixtures/demo_admin_user.yml (modified) (1 diff)
-
lib/model/doctrine/apostrophePlugin/base/BaseaPage.class.php (modified) (8 diffs)
-
lib/model/doctrine/apostrophePlugin/base/BaseaSlot.class.php (modified) (2 diffs)
-
lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUser.class.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sandboxes/asandbox/branches/1.4/data/fixtures/demo_admin_user.yml
r756 r1731 1 # Two users by default: a superadmin (we suggest reserving this account for developer use and 2 # removing it at production launch) and an admin (a member of the admin group). We suggest 3 # giving the latter account to the client. Out of the box, Apostrophe's group 4 # dashboard isn't of much use to a client admin (it will be in 1.5) and the permissions 5 # dashboard is just plain dangerous, so we show only the users dashboard to regular admins 6 1 7 sfGuardUser: 8 sgu_superadmin: 9 username: superadmin 10 password: demo 11 is_super_admin: true 2 12 sgu_admin: 3 13 username: admin 4 14 password: demo 5 is_super_admin: true 15 sfGuardUserGroup: 16 sgug_admin_admin: 17 sfGuardUser: sgu_admin 18 sfGuardGroup: sfGuardGroup_admin -
sandboxes/asandbox/branches/1.4/lib/model/doctrine/apostrophePlugin/base/BaseaPage.class.php
r1659 r1731 17 17 * @property sfGuardUser $Author 18 18 * @property sfGuardUser $Deleter 19 * @property Doctrine_Collection $aBlogItem20 * @property Doctrine_Collection $BlogCategories21 * @property Doctrine_Collection $aBlogPageCategory22 19 * @property Doctrine_Collection $Areas 23 20 * @property Doctrine_Collection $Accesses … … 26 23 * @property Doctrine_Collection $aMediaPageCategory 27 24 * @property Doctrine_Collection $aRedirect 25 * @property Doctrine_Collection $aBlogItem 26 * @property Doctrine_Collection $BlogCategories 27 * @property Doctrine_Collection $aBlogPageCategory 28 28 * 29 29 * @method integer getId() Returns the current record's "id" value … … 38 38 * @method sfGuardUser getAuthor() Returns the current record's "Author" value 39 39 * @method sfGuardUser getDeleter() Returns the current record's "Deleter" value 40 * @method Doctrine_Collection getABlogItem() Returns the current record's "aBlogItem" collection41 * @method Doctrine_Collection getBlogCategories() Returns the current record's "BlogCategories" collection42 * @method Doctrine_Collection getABlogPageCategory() Returns the current record's "aBlogPageCategory" collection43 40 * @method Doctrine_Collection getAreas() Returns the current record's "Areas" collection 44 41 * @method Doctrine_Collection getAccesses() Returns the current record's "Accesses" collection … … 47 44 * @method Doctrine_Collection getAMediaPageCategory() Returns the current record's "aMediaPageCategory" collection 48 45 * @method Doctrine_Collection getARedirect() Returns the current record's "aRedirect" collection 46 * @method Doctrine_Collection getABlogItem() Returns the current record's "aBlogItem" collection 47 * @method Doctrine_Collection getBlogCategories() Returns the current record's "BlogCategories" collection 48 * @method Doctrine_Collection getABlogPageCategory() Returns the current record's "aBlogPageCategory" collection 49 49 * @method aPage setId() Sets the current record's "id" value 50 50 * @method aPage setSlug() Sets the current record's "slug" value … … 58 58 * @method aPage setAuthor() Sets the current record's "Author" value 59 59 * @method aPage setDeleter() Sets the current record's "Deleter" value 60 * @method aPage setABlogItem() Sets the current record's "aBlogItem" collection61 * @method aPage setBlogCategories() Sets the current record's "BlogCategories" collection62 * @method aPage setABlogPageCategory() Sets the current record's "aBlogPageCategory" collection63 60 * @method aPage setAreas() Sets the current record's "Areas" collection 64 61 * @method aPage setAccesses() Sets the current record's "Accesses" collection … … 67 64 * @method aPage setAMediaPageCategory() Sets the current record's "aMediaPageCategory" collection 68 65 * @method aPage setARedirect() Sets the current record's "aRedirect" collection 66 * @method aPage setABlogItem() Sets the current record's "aBlogItem" collection 67 * @method aPage setBlogCategories() Sets the current record's "BlogCategories" collection 68 * @method aPage setABlogPageCategory() Sets the current record's "aBlogPageCategory" collection 69 69 * 70 70 * @package content … … 146 146 'foreign' => 'id')); 147 147 148 $this->hasMany('aBlogItem', array(149 'local' => 'id',150 'foreign' => 'page_id'));151 152 $this->hasMany('aBlogCategory as BlogCategories', array(153 'refClass' => 'aBlogPageCategory',154 'local' => 'page_id',155 'foreign' => 'blog_category_id'));156 157 $this->hasMany('aBlogPageCategory', array(158 'local' => 'id',159 'foreign' => 'page_id'));160 161 148 $this->hasMany('aArea as Areas', array( 162 149 'local' => 'id', … … 184 171 'foreign' => 'page_id')); 185 172 173 $this->hasMany('aBlogItem', array( 174 'local' => 'id', 175 'foreign' => 'page_id')); 176 177 $this->hasMany('aBlogCategory as BlogCategories', array( 178 'refClass' => 'aBlogPageCategory', 179 'local' => 'page_id', 180 'foreign' => 'blog_category_id')); 181 182 $this->hasMany('aBlogPageCategory', array( 183 'local' => 'id', 184 'foreign' => 'page_id')); 185 186 186 $timestampable0 = new Doctrine_Template_Timestampable(array( 187 187 )); -
sandboxes/asandbox/branches/1.4/lib/model/doctrine/apostrophePlugin/base/BaseaSlot.class.php
r1659 r1731 63 63 64 64 $this->setSubClasses(array( 65 'aBlogSlot' =>66 array(67 'type' => 'aBlog',68 ),69 'aBlogSingleSlot' =>70 array(71 'type' => 'aBlogSingle',72 ),73 'aEventSlot' =>74 array(75 'type' => 'aEvent',76 ),77 'aEventSingleSlot' =>78 array(79 'type' => 'aEventSingle',80 ),81 65 'aTextSlot' => 82 66 array( … … 123 107 'type' => 'aNewRichText', 124 108 ), 109 'aBlogSlot' => 110 array( 111 'type' => 'aBlog', 112 ), 113 'aBlogSingleSlot' => 114 array( 115 'type' => 'aBlogSingle', 116 ), 117 'aEventSlot' => 118 array( 119 'type' => 'aEvent', 120 ), 121 'aEventSingleSlot' => 122 array( 123 'type' => 'aEventSingle', 124 ), 125 125 )); 126 126 } -
sandboxes/asandbox/branches/1.4/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUser.class.php
r1659 r1731 16 16 * @property Doctrine_Collection $groups 17 17 * @property Doctrine_Collection $permissions 18 * @property Doctrine_Collection $aPage 19 * @property Doctrine_Collection $aAreaVersion 20 * @property Doctrine_Collection $Accesses 21 * @property Doctrine_Collection $MediaItems 18 22 * @property Doctrine_Collection $BlogAuthorItems 19 23 * @property Doctrine_Collection $BlogEditorItems … … 21 25 * @property Doctrine_Collection $BlogCategories 22 26 * @property Doctrine_Collection $BlogCategoryUsers 23 * @property Doctrine_Collection $aPage24 * @property Doctrine_Collection $aAreaVersion25 * @property Doctrine_Collection $Accesses26 * @property Doctrine_Collection $MediaItems27 27 * @property Doctrine_Collection $sfGuardUserPermission 28 28 * @property Doctrine_Collection $sfGuardUserGroup … … 39 39 * @method Doctrine_Collection getGroups() Returns the current record's "groups" collection 40 40 * @method Doctrine_Collection getPermissions() Returns the current record's "permissions" collection 41 * @method Doctrine_Collection getAPage() Returns the current record's "aPage" collection 42 * @method Doctrine_Collection getAAreaVersion() Returns the current record's "aAreaVersion" collection 43 * @method Doctrine_Collection getAccesses() Returns the current record's "Accesses" collection 44 * @method Doctrine_Collection getMediaItems() Returns the current record's "MediaItems" collection 41 45 * @method Doctrine_Collection getBlogAuthorItems() Returns the current record's "BlogAuthorItems" collection 42 46 * @method Doctrine_Collection getBlogEditorItems() Returns the current record's "BlogEditorItems" collection … … 44 48 * @method Doctrine_Collection getBlogCategories() Returns the current record's "BlogCategories" collection 45 49 * @method Doctrine_Collection getBlogCategoryUsers() Returns the current record's "BlogCategoryUsers" collection 46 * @method Doctrine_Collection getAPage() Returns the current record's "aPage" collection47 * @method Doctrine_Collection getAAreaVersion() Returns the current record's "aAreaVersion" collection48 * @method Doctrine_Collection getAccesses() Returns the current record's "Accesses" collection49 * @method Doctrine_Collection getMediaItems() Returns the current record's "MediaItems" collection50 50 * @method Doctrine_Collection getSfGuardUserPermission() Returns the current record's "sfGuardUserPermission" collection 51 51 * @method Doctrine_Collection getSfGuardUserGroup() Returns the current record's "sfGuardUserGroup" collection … … 61 61 * @method sfGuardUser setGroups() Sets the current record's "groups" collection 62 62 * @method sfGuardUser setPermissions() Sets the current record's "permissions" collection 63 * @method sfGuardUser setAPage() Sets the current record's "aPage" collection 64 * @method sfGuardUser setAAreaVersion() Sets the current record's "aAreaVersion" collection 65 * @method sfGuardUser setAccesses() Sets the current record's "Accesses" collection 66 * @method sfGuardUser setMediaItems() Sets the current record's "MediaItems" collection 63 67 * @method sfGuardUser setBlogAuthorItems() Sets the current record's "BlogAuthorItems" collection 64 68 * @method sfGuardUser setBlogEditorItems() Sets the current record's "BlogEditorItems" collection … … 66 70 * @method sfGuardUser setBlogCategories() Sets the current record's "BlogCategories" collection 67 71 * @method sfGuardUser setBlogCategoryUsers() Sets the current record's "BlogCategoryUsers" collection 68 * @method sfGuardUser setAPage() Sets the current record's "aPage" collection69 * @method sfGuardUser setAAreaVersion() Sets the current record's "aAreaVersion" collection70 * @method sfGuardUser setAccesses() Sets the current record's "Accesses" collection71 * @method sfGuardUser setMediaItems() Sets the current record's "MediaItems" collection72 72 * @method sfGuardUser setSfGuardUserPermission() Sets the current record's "sfGuardUserPermission" collection 73 73 * @method sfGuardUser setSfGuardUserGroup() Sets the current record's "sfGuardUserGroup" collection … … 144 144 'foreign' => 'permission_id')); 145 145 146 $this->hasMany('aPage', array( 147 'local' => 'id', 148 'foreign' => 'author_id')); 149 150 $this->hasMany('aAreaVersion', array( 151 'local' => 'id', 152 'foreign' => 'author_id')); 153 154 $this->hasMany('aAccess as Accesses', array( 155 'local' => 'id', 156 'foreign' => 'user_id')); 157 158 $this->hasMany('aMediaItem as MediaItems', array( 159 'local' => 'id', 160 'foreign' => 'owner_id')); 161 146 162 $this->hasMany('aBlogItem as BlogAuthorItems', array( 147 163 'local' => 'id', … … 166 182 'foreign' => 'user_id')); 167 183 168 $this->hasMany('aPage', array(169 'local' => 'id',170 'foreign' => 'author_id'));171 172 $this->hasMany('aAreaVersion', array(173 'local' => 'id',174 'foreign' => 'author_id'));175 176 $this->hasMany('aAccess as Accesses', array(177 'local' => 'id',178 'foreign' => 'user_id'));179 180 $this->hasMany('aMediaItem as MediaItems', array(181 'local' => 'id',182 'foreign' => 'owner_id'));183 184 184 $this->hasMany('sfGuardUserPermission', array( 185 185 'local' => 'id',

