access |
public |
package |
kocuj_internal_lib |
inherited_from |
\KocujIL\V12a\Classes\ComponentObject |
Methods
Constructor
__construct(object $projectObj) : void
Inherited
Parameters
$projectObj
object
\KocujIL\V12a\Classes\Project object for current project
Action for display review message
actionAdminHead() : void
Get window has been closed (true) or not (false)
getClosedWindowOptionValue() : boolean
Returns
boolean
Window 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
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
object
Object of class type from component
Get days count after which message about review will be displayed; 0 means never
getDays() : integer
Returns
integer
Days count after which message about review will be displayed; 0 means never
Get object of type \KocujIL\V12a\Classes\Project
getProjectObj() : object
Inherited
Returns
object
Object 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
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
object
Object of class type for strings from component
Set vote URL
getVoteUrl() : string
Set days count after which message about review will be displayed; 0 means never
setDays(integer $days) : void
Parameters
$days
integer
Days count after which message about review will be displayed; 0 means never
Set vote URL
setVoteUrl(string $url) : void
Add additional elements
addAdditionalElements(array $elements) : string
Parameters
$elements
array
Additional elements to add
Returns
string
Additional elements in string
Get message element in "div" container
getMessageElement(string $element, boolean $smaller = false
) : string
Parameters
$element
string
Message element
$smaller
boolean
Message element is smaller than normal (true) or not (false) - default: false
Returns
string
Message element in "div" container
Properties
Days count after which message about review will be displayed; 0 means never
$days : integer
\KocujIL\V12a\Classes\Project object for current project
$projectObj : object
Review message is set to be displayed (true) or review message will not be displayed (false)
$reviewMessageDisplay : boolean
Vote URL
$voteUrl : string