Review message class

access public
package kocuj_internal_lib
inherited_from \KocujIL\V12a\Classes\ComponentObject

 Methods

Constructor

__construct(object $projectObj) : void
Inherited
access public

Parameters

$projectObj

object

\KocujIL\V12a\Classes\Project object for current project

Action for display review message

actionAdminHead() : void
access public

Action for forcing displaying of review message

actionPrintFooterScripts() : void
access public

Get window has been closed (true) or not (false)

getClosedWindowOptionValue() : boolean
access public

Returns

booleanWindow has been closed (true) or not (false)

Get object of class type from component

getComponent(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE, string $fragment = '') : object
Inherited
access public

Parameters

$type

string

Component type

$projectCategory

integer

Component category; must be one of the following constants from \KocujIL\V12a\Enums\ProjectCategory: CORE (for "core" category), ALL (for "all" category), FRONTEND (for "frontend" category) or BACKEND (for "backend" category) - default: \KocujIL\V12a\Enums\ProjectCategory::CORE

$fragment

string

Component fragment - default: empty

Returns

objectObject of class type from component

Get days count after which message about review will be displayed; 0 means never

getDays() : integer
access public

Returns

integerDays count after which message about review will be displayed; 0 means never

Get object of type \KocujIL\V12a\Classes\Project

getProjectObj() : object
Inherited
access public

Returns

objectObject of type \KocujIL\V12a\Classes\Project

Get object of class type for strings from component

getStrings(string $type, integer $projectCategory = \KocujIL\V12a\Enums\ProjectCategory::CORE) : object
Inherited
access public

Parameters

$type

string

Component type

$projectCategory

integer

Component category; must be one of the following constants from \KocujIL\V12a\Enums\ProjectCategory: CORE (for "core" category), ALL (for "all" category), FRONTEND (for "frontend" category) or BACKEND (for "backend" category) - default: \KocujIL\V12a\Enums\ProjectCategory::CORE

Returns

objectObject of class type for strings from component

Set vote URL

getVoteUrl() : string
access public

Returns

stringVote url

Set days count after which message about review will be displayed; 0 means never

setDays(integer $days) : void
access public

Parameters

$days

integer

Days count after which message about review will be displayed; 0 means never

Set vote URL

setVoteUrl(string $url) : void
access public

Parameters

$url

string

Vote url

Add additional elements

addAdditionalElements(array $elements) : string
access private

Parameters

$elements

array

Additional elements to add

Returns

stringAdditional elements in string

Get message element in "div" container

getMessageElement(string $element, boolean $smaller = false) : string
access private

Parameters

$element

string

Message element

$smaller

boolean

Message element is smaller than normal (true) or not (false) - default: false

Returns

stringMessage element in "div" container

 Properties

 

Days count after which message about review will be displayed; 0 means never

$days : integer

Default

0
access private
 

\KocujIL\V12a\Classes\Project object for current project

$projectObj : object

Default

NULL
access private
 

Review message is set to be displayed (true) or review message will not be displayed (false)

$reviewMessageDisplay : boolean

Default

false
access private
 

Vote URL

$voteUrl : string

Default

''
access private