ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\Blog\Posting\Service\GUIService Class Reference

GUI service for blog postings. More...

+ Collaboration diagram for ILIAS\Blog\Posting\Service\GUIService:

Public Member Functions

 __construct (protected InternalDataService $data, protected InternalDomainService $domain, protected InternalGUIService $gui)
 
 postingGUI (int $a_node_id, ?object $a_access_handler=null, int $a_id=0, int $a_old_nr=0, bool $a_enable_public_notes=true, bool $a_may_contribute=true, int $a_style_sheet_id=0)
 
 postingList (int $blog_id, PermissionManager $perm, ?string $current_month=null, ?int $node_id=null, int $id_type=\ilObjBlogGUI::REPOSITORY_NODE_ID)
 
 getSnippet (int $a_id, bool $a_truncate=false, int $a_truncate_length=500, string $a_truncate_sign="...", bool $a_include_picture=false, int $a_picture_width=144, int $a_picture_height=144, ?string $a_export_directory=null)
 Get first text paragraph of page. More...
 

Detailed Description

GUI service for blog postings.

Definition at line 31 of file class.GUIService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Blog\Posting\Service\GUIService::__construct ( protected InternalDataService  $data,
protected InternalDomainService  $domain,
protected InternalGUIService  $gui 
)

Definition at line 33 of file class.GUIService.php.

37 {
38 }

Member Function Documentation

◆ getSnippet()

ILIAS\Blog\Posting\Service\GUIService::getSnippet ( int  $a_id,
bool  $a_truncate = false,
int  $a_truncate_length = 500,
string  $a_truncate_sign = "...",
bool  $a_include_picture = false,
int  $a_picture_width = 144,
int  $a_picture_height = 144,
?string  $a_export_directory = null 
)

Get first text paragraph of page.

Definition at line 83 of file class.GUIService.php.

92 : string {
93 $bpgui = $this->postingGUI(0, null, $a_id);
94 return $bpgui->getSnippet(
95 $a_truncate,
96 $a_truncate_length,
97 $a_truncate_sign,
98 $a_include_picture,
99 $a_picture_width,
100 $a_picture_height,
101 $a_export_directory
102 );
103 }
postingGUI(int $a_node_id, ?object $a_access_handler=null, int $a_id=0, int $a_old_nr=0, bool $a_enable_public_notes=true, bool $a_may_contribute=true, int $a_style_sheet_id=0)

◆ postingGUI()

ILIAS\Blog\Posting\Service\GUIService::postingGUI ( int  $a_node_id,
?object  $a_access_handler = null,
int  $a_id = 0,
int  $a_old_nr = 0,
bool  $a_enable_public_notes = true,
bool  $a_may_contribute = true,
int  $a_style_sheet_id = 0 
)

Definition at line 40 of file class.GUIService.php.

49 return new \ilBlogPostingGUI(
50 $a_node_id,
51 $a_access_handler,
52 $a_id,
53 $a_old_nr,
54 $a_enable_public_notes,
55 $a_may_contribute,
56 $a_style_sheet_id
57 );
58 }
Class ilBlogPosting GUI class.

◆ postingList()

ILIAS\Blog\Posting\Service\GUIService::postingList ( int  $blog_id,
PermissionManager  $perm,
?string  $current_month = null,
?int  $node_id = null,
int  $id_type = \ilObjBlogGUI::REPOSITORY_NODE_ID 
)

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

67 return new \ILIAS\Blog\Posting\PostingListGUI(
68 $this->data,
69 $this->domain,
70 $this->gui,
71 $this->domain->pageManager(),
72 $blog_id,
73 $perm,
74 $current_month,
75 $node_id,
76 $id_type
77 );
78 }

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