File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77use SilverStripe \Forms \FieldList ;
88use SilverStripe \Forms \GridField \GridFieldAddNewButton ;
99
10+ /**
11+ * @method SilverStripe\ORM\ManyManyList<BasePage> Pages()
12+ */
1013class TaxonomyTermExtension extends DataExtension
1114{
1215
Original file line number Diff line number Diff line change 1010use SilverStripe \ORM \DataObject ;
1111
1212/**
13- * @method BaseHomePage Parent()
1413 * @method SiteTree InternalLink()
14+ * @method BaseHomePage Parent()
1515 */
1616class Quicklink extends DataObject
1717{
Original file line number Diff line number Diff line change 66use SilverStripe \ORM \DataObject ;
77use SilverStripe \Versioned \Versioned ;
88
9+ /**
10+ * @method BasePage BasePage()
11+ * @method BasePage Child()
12+ */
913class RelatedPageLink extends DataObject
1014{
1115 private static $ table_name = 'BasePage_RelatedPages ' ;
Original file line number Diff line number Diff line change 2323 * **BaseHomePage** is the basic home page.
2424 * By default it is hidden from the CMS - we rely on developers creating their own
2525 * `HomePage` class in the `mysite/code` which will extend from the **BaseHomePage**.
26+ * @method SiteTree FeatureOneLink()
27+ * @method SiteTree FeatureTwoLink()
28+ * @method SiteTree LearnMorePage()
29+ * @method SilverStripe\ORM\HasManyList<Quicklink> Quicklinks()
2630 */
2731class BaseHomePage extends Page
2832{
Original file line number Diff line number Diff line change 2626 * Please note: you should generally always extend `Page` with your custom page types. Refrain from subclassing
2727 * `BasePage` directly. Doing so will omit `Page` from your custom class's hierarchy, and this can have unintended
2828 * side effects where modules rely on modifying things on the `Page` class, as well as with templates and themes.
29+ * @method SilverStripe\ORM\ManyManyThroughList<BasePage> RelatedPagesThrough()
30+ * @method SilverStripe\ORM\ManyManyList<BasePage> SimilarPages()
31+ * @method SilverStripe\ORM\ManyManyList<TaxonomyTerm> Terms()
2932 */
3033
3134class BasePage extends SiteTree
Original file line number Diff line number Diff line change 88use SilverStripe \Forms \TextField ;
99use SilverStripe \ORM \FieldType \DBField ;
1010
11+ /**
12+ * @method Image FeaturedImage()
13+ */
1114class NewsPage extends DatedUpdatePage
1215{
1316 private static $ description = 'Describes an item of news ' ;
You can’t perform that action at this time.
0 commit comments