ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Blog\Posting\PostingManager Class Reference
+ Collaboration diagram for ILIAS\Blog\Posting\PostingManager:

Public Member Functions

 __construct (protected InternalDataService $data, protected InternalRepoService $repo, protected InternalDomainService $domain)
 
 create (Posting $posting)
 
 update (Posting $posting)
 
 delete (Posting $posting)
 
 getById (int $id)
 
 getAllByBlog (int $blog_id, int $limit=1000, int $offset=0)
 
 exists (int $blog_id, int $posting_id)
 
 lookupBlogId (int $posting_id)
 
 deleteAllByBlog (int $blog_id)
 
 getLastPost (int $blog_id)
 
 searchBlogsByAuthor (int $user_id)
 

Detailed Description

Definition at line 28 of file class.PostingManager.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Blog\Posting\PostingManager::__construct ( protected InternalDataService  $data,
protected InternalRepoService  $repo,
protected InternalDomainService  $domain 
)

Definition at line 30 of file class.PostingManager.php.

34 {
35 }

Member Function Documentation

◆ create()

ILIAS\Blog\Posting\PostingManager::create ( Posting  $posting)

Definition at line 37 of file class.PostingManager.php.

37 : int
38 {
39 return $this->repo->posting()->create($posting);
40 }

◆ delete()

ILIAS\Blog\Posting\PostingManager::delete ( Posting  $posting)

Definition at line 47 of file class.PostingManager.php.

47 : void
48 {
49 $this->repo->posting()->delete($posting->getId());
50 }

◆ deleteAllByBlog()

ILIAS\Blog\Posting\PostingManager::deleteAllByBlog ( int  $blog_id)

Definition at line 75 of file class.PostingManager.php.

75 : void
76 {
77 $this->repo->posting()->deleteAllBlogPostings($blog_id);
78 }

◆ exists()

ILIAS\Blog\Posting\PostingManager::exists ( int  $blog_id,
int  $posting_id 
)

Definition at line 65 of file class.PostingManager.php.

65 : bool
66 {
67 return $this->repo->posting()->exists($blog_id, $posting_id);
68 }

◆ getAllByBlog()

ILIAS\Blog\Posting\PostingManager::getAllByBlog ( int  $blog_id,
int  $limit = 1000,
int  $offset = 0 
)
Returns
Posting[]

Definition at line 60 of file class.PostingManager.php.

60 : array
61 {
62 return $this->repo->posting()->getAllByBlog($blog_id, $limit, $offset);
63 }

◆ getById()

ILIAS\Blog\Posting\PostingManager::getById ( int  $id)

Definition at line 52 of file class.PostingManager.php.

52 : ?Posting
53 {
54 return $this->repo->posting()->getById($id);
55 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

◆ getLastPost()

ILIAS\Blog\Posting\PostingManager::getLastPost ( int  $blog_id)

Definition at line 80 of file class.PostingManager.php.

80 : int
81 {
82 return $this->repo->posting()->getLastPost($blog_id);
83 }

◆ lookupBlogId()

ILIAS\Blog\Posting\PostingManager::lookupBlogId ( int  $posting_id)

Definition at line 70 of file class.PostingManager.php.

70 : ?int
71 {
72 return $this->repo->posting()->lookupBlogId($posting_id);
73 }

◆ searchBlogsByAuthor()

ILIAS\Blog\Posting\PostingManager::searchBlogsByAuthor ( int  $user_id)

Definition at line 85 of file class.PostingManager.php.

85 : array
86 {
87 return $this->repo->posting()->searchBlogsByAuthor($user_id);
88 }

References $user_id.

◆ update()

ILIAS\Blog\Posting\PostingManager::update ( Posting  $posting)

Definition at line 42 of file class.PostingManager.php.

42 : void
43 {
44 $this->repo->posting()->update($posting);
45 }

The documentation for this class was generated from the following file: