all-in-one-event-calendar/lib/calendar/state.php
2017-11-09 17:36:04 +01:00

66 lines
1.5 KiB
PHP

<?php
/**
* Calendar state container.
*
* @author Time.ly Network Inc.
* @since 2.2
*
* @package AI1EC
* @subpackage AI1EC.Lib.Calendar
*/
class Ai1ec_Calendar_State extends Ai1ec_Base {
/**
* Whether calendar is initializing router or not.
*
* @var bool
*/
private $_is_routing_initializing = false;
/**
* Whether Html render strategy should append content in the_content
* filter hook.
*
* @var bool
*/
private $_append_content = true;
/**
* Returns whether routing is during initialization phase or not.
*
* @return bool
*/
public function is_routing_initializing() {
return $this->_is_routing_initializing;
}
/**
* Sets state for routing initialization phase.
*
* @param bool $status State for initializing phase.
*/
public function set_routing_initialization( $status ) {
$this->_is_routing_initializing = $status;
}
/**
* Returns whether html render strategy should append content in the_content
* filter hook.
*
* @return bool
*/
public function append_content() {
return $this->_append_content;
}
/**
* Sets state for content appending in html renderer the_content hook.
* See Ai1ec_Render_Strategy_Html::append_content()
*
* @param bool $status Whether to append content or not.
*/
public function set_append_content( $status ) {
$this->_append_content = $status;
}
}