Changeset 57056
- Timestamp:
- 29/06/08 14:18:56 (2 months ago)
- Location:
- modules/sapphire/branches/roa/core/model
- Files:
-
- 3 modified
-
Hierarchy.php (modified) (1 diff)
-
SiteTree.php (modified) (3 diffs)
-
Versioned.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/sapphire/branches/roa/core/model/Hierarchy.php
r49795 r57056 23 23 24 24 function augmentWrite(&$manipulation) { 25 } 26 27 function extraDbFields() { 28 return array( 29 'has_many' => array( 30 'Children' => 'SiteTree', 31 'StageChildren' => 'SiteTree', 32 'LiveChildren' => 'SiteTree', 33 ) 34 ); 25 35 } 26 36 -
modules/sapphire/branches/roa/core/model/SiteTree.php
r55671 r57056 185 185 */ 186 186 public static $breadcrumbs_delimiter = " » "; 187 188 static $searchable_fields = array( 189 'Title', 190 ); 187 191 188 192 … … 564 568 * @return boolean True if the current user can view this page. 565 569 */ 566 public function canView($member ) {570 public function canView($member = null) { 567 571 return $this->can('view'); 568 572 } … … 652 656 /** 653 657 * Return the title, description, keywords and language metatags. 658 * 659 * @todo Make generator tag dynamically determine version number (currently defaults to "2.0") 660 * @todo Move <title> tag in separate getter for easier customization and more obvious usage 661 * 654 662 * @param boolean|string $includeTitle Show default <title>-tag, set to false for custom templating 655 *656 663 * @param boolean $includeTitle Show default <title>-tag, set to false for 657 664 * custom templating -
modules/sapphire/branches/roa/core/model/Versioned.php
r50723 r57056 53 53 $this->defaultStage = reset($stages); 54 54 $this->liveStage = array_pop($stages); 55 } 56 57 function extraDbFields() { 58 return array( 59 'has_many' => array( 60 'Versions' => 'SiteTree', 61 ) 62 ); 55 63 } 56 64 … … 434 442 } 435 443 444 function Versions($filter = "") { 445 return $this->allVersions($filter); 446 } 447 436 448 /** 437 449 * Return a list of all the versions available.
