ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPollBlock Class Reference

Custom block for polls. More...

+ Inheritance diagram for ilPollBlock:
+ Collaboration diagram for ilPollBlock:

Public Member Functions

 __construct (int $a_id=0)
 
 setRefId (int $a_id)
 Set ref id (needed for poll access) More...
 
 getPoll ()
 
- Public Member Functions inherited from ilCustomBlock
 __construct (int $a_id=0)
 
 setId (int $a_id)
 
 getId ()
 
 setContextObjId (int $a_context_obj_id)
 
 getContextObjId ()
 
 setContextObjType (string $a_context_obj_type)
 
 getContextObjType ()
 
 setContextSubObjId (int $a_context_sub_obj_id)
 
 getContextSubObjId ()
 
 setContextSubObjType (string $a_context_sub_obj_type)
 
 getContextSubObjType ()
 
 setType (string $a_type)
 
 getType ()
 
 setTitle (string $a_title)
 
 getTitle ()
 
 create ()
 
 read ()
 
 update ()
 
 delete ()
 
 queryBlocksForContext (bool $a_include_sub_obj=true)
 Query BlocksForContext. More...
 
 queryCntBlockForContext ()
 

Protected Attributes

ilLanguage $lng
 
ilObjPoll $poll
 
- Protected Attributes inherited from ilCustomBlock
ilDBInterface $db
 
int $id = 0
 
int $context_obj_id = 0
 
string $context_obj_type = ""
 
int $context_sub_obj_id = 0
 
string $context_sub_obj_type = ""
 
string $type = ""
 
string $title = ""
 

Additional Inherited Members

- Static Public Member Functions inherited from ilCustomBlock
static multiBlockQuery (string $a_context_obj_type, array $a_context_obj_ids)
 

Detailed Description

Custom block for polls.

Author
Jörg Lützenkirchen luetz.nosp@m.enki.nosp@m.rchen.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 26 of file class.ilPollBlock.php.

Constructor & Destructor Documentation

◆ __construct()

ilPollBlock::__construct ( int  $a_id = 0)

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

References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().

32  {
33  global $DIC;
34 
35  parent::__construct($a_id);
36  $this->lng = $DIC->language();
37  }
global $DIC
Definition: shib_login.php:22
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ getPoll()

ilPollBlock::getPoll ( )

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

References $poll.

47  : ilObjPoll
48  {
49  return $this->poll;
50  }
Class ilObjPoll.

◆ setRefId()

ilPollBlock::setRefId ( int  $a_id)

Set ref id (needed for poll access)

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

42  : void
43  {
44  $this->poll = new ilObjPoll($a_id, true);
45  }
Class ilObjPoll.

Field Documentation

◆ $lng

ilLanguage ilPollBlock::$lng
protected

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

◆ $poll

ilObjPoll ilPollBlock::$poll
protected

Definition at line 29 of file class.ilPollBlock.php.

Referenced by getPoll().


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