<?php
/**
*
* @author Arash Sanieyan
*
*/
class AnModelApplicationContext extends KObject
{
/**
*
*
* @var AnModelActor
*/
protected $_actor;
/**
*
*
* @var AnModelActor
*/
protected $_viewer;
/**
* Get the context viewer
*
* @return AnModelActor
*/
public function getViewer()
{
if ( !isset($this->_viewer) ) {
//@TODO need to move the sessionViewer to here and get rid of the sessionViewer
$this->_viewer = AnModelAnahita::getSessionViewer();
}
return $this->_viewer;
}
/**
* Set the context viewer
* @param $viewer AnModelActor
* @return void
*/
public function setViewer($viewer)
{
$this->_viewer = $viewer;
}
/**
* Set the context actor
* @param $actor AnModelActor
* @return void
*/
public function setActor($actor)
{
$this->_actor = $actor;
}
/**
* Get context actor
*
* @return void
*/
public function getActor()
{
return $this->_actor;
}
}