mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #734 from creative-commoners/pulls/4.1/docblock
MNT Update @methods on class docblocks
This commit is contained in:
commit
1e982c8f31
@ -31,11 +31,11 @@ use SilverStripe\View\Requirements;
|
||||
/**
|
||||
* Blog Holder
|
||||
*
|
||||
* @method HasManyList Tags() List of tags in this blog
|
||||
* @method HasManyList Categories() List of categories in this blog
|
||||
* @method ManyManyList Editors() List of editors
|
||||
* @method ManyManyList Writers() List of writers
|
||||
* @method ManyManyList Contributors() List of contributors
|
||||
* @method HasManyList<BlogCategory> Categories()
|
||||
* @method ManyManyList<Member> Contributors()
|
||||
* @method ManyManyList<Member> Editors()
|
||||
* @method HasManyList<BlogTag> Tags()
|
||||
* @method ManyManyList<Member> Writers()
|
||||
*/
|
||||
class Blog extends Page implements PermissionProvider
|
||||
{
|
||||
|
@ -8,11 +8,12 @@ use SilverStripe\ORM\DataObject;
|
||||
* A blog category for generalising blog posts.
|
||||
*
|
||||
*
|
||||
* @method Blog Blog()
|
||||
*
|
||||
* @property string $Title
|
||||
* @property string $URLSegment
|
||||
* @property int $BlogID
|
||||
* @method Blog Blog()
|
||||
* @method SilverStripe\ORM\ManyManyList<BlogPost> BlogPosts()
|
||||
*/
|
||||
class BlogCategory extends DataObject implements CategorisationObject
|
||||
{
|
||||
|
@ -17,6 +17,8 @@ use SilverStripe\View\Requirements;
|
||||
/**
|
||||
* This class is responsible for add Blog specific behaviour to Members.
|
||||
*
|
||||
* @method SilverStripe\ORM\ManyManyList<BlogPost> BlogPosts()
|
||||
* @method Image BlogProfileImage()
|
||||
*/
|
||||
class BlogMemberExtension extends DataExtension
|
||||
{
|
||||
|
@ -31,17 +31,15 @@ use SilverStripe\View\Requirements;
|
||||
/**
|
||||
* An individual blog post.
|
||||
*
|
||||
* @method ManyManyList Categories()
|
||||
* @method ManyManyList Tags()
|
||||
* @method ManyManyList Authors()
|
||||
* @method Blog Parent()
|
||||
* @method Image FeaturedImage()
|
||||
*
|
||||
* @property string $PublishDate
|
||||
* @property string $AuthorNames
|
||||
* @property string $Summary
|
||||
* @property int $ParentID
|
||||
* @property int $FeaturedImageID
|
||||
* @method ManyManyList<Member> Authors()
|
||||
* @method ManyManyList<BlogCategory> Categories()
|
||||
* @method Image FeaturedImage()
|
||||
* @method ManyManyList<BlogTag> Tags()
|
||||
*/
|
||||
class BlogPost extends Page
|
||||
{
|
||||
|
@ -7,12 +7,11 @@ use SilverStripe\ORM\DataObject;
|
||||
/**
|
||||
* A blog tag for keyword descriptions of a blog post.
|
||||
*
|
||||
*
|
||||
* @method Blog Blog()
|
||||
*
|
||||
* @property string $Title
|
||||
* @property string $URLSegment
|
||||
* @property int $BlogID
|
||||
* @method Blog Blog()
|
||||
* @method SilverStripe\ORM\ManyManyList<BlogPost> BlogPosts()
|
||||
*/
|
||||
class BlogTag extends DataObject implements CategorisationObject
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user