CC-3174 : showbuilder

check into issue that propel doesn't return DateTime object in UTC.
using table tools to keep track of selected rows.
This commit is contained in:
Naomi Aro 2012-01-31 18:59:27 +01:00
parent 3f3117cf0e
commit fbda0e733b
16 changed files with 3999 additions and 437 deletions

View file

@ -35,6 +35,19 @@ class Application_Model_User {
return $this->isUserType(UTYPE_ADMIN);
}
public function canSchedule($p_showId) {
$type = $this->getType();
if ( $type === UTYPE_ADMIN ||
$type === UTYPE_PROGRAM_MANAGER ||
CcShowHostsQuery::create()->filterByDbShow($p_showId)->filterByDbHost($this->getId())->count() > 0 )
{
return true;
}
return false;
}
public function isUserType($type, $showId=''){
if(is_array($type)){
$result = false;
@ -270,4 +283,9 @@ class Application_Model_User {
}
}
public static function GetCurrentUser() {
$userinfo = Zend_Auth::getInstance()->getStorage()->read();
return new self($userinfo->id);
}
}