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