You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
PlexShare/fuel/app/classes/model/user/watching.php

28 lines
557 B

<?php
class Model_User_Watching extends Model_Overwrite
{
protected static $_table_name = 'user_watching';
protected static $_primary_key = 'id';
protected static $_properties = array(
'id',
'user_id',
'movie_id',
'watching_time',
'ended_time',
'is_ended'
);
private $_movie = null;
public function getMovie()
{
if(!$this->_movie && $this->movie_id !== null)
$this->_movie = Model_Movie::find_by_pk($this->movie_id);
return $this->_movie;
}
}