14 parent::__construct($aSystem);
15 $this->_aTables = array(
16 'RayBoardBoards' =>
'`OwnerID` = {profile_id}',
17 'RayBoardUsers' =>
'`User` = {profile_id}',
19 'RayChatHistory' =>
'`Sender` = {profile_id}',
20 'RayChatMessages' =>
'`Sender` = {profile_id}',
21 'RayChatProfiles' =>
'`ID` = {profile_id}',
22 'RayChatRoomsUsers' =>
'`User` = {profile_id}',
24 'RayImContacts' =>
'`SenderID` = {profile_id}',
25 'RayImPendings' =>
'`SenderID` = {profile_id}',
27 'RayMp3Files' =>
'`Owner` = {profile_id}',
29 'RayVideoFiles' =>
'`Owner` = {profile_id}',
31 'RayVideo_commentsFiles' =>
'`Owner` = {profile_id}',
33 $this->_sFilesBaseDir =
'flash/modules/';
34 $this->_aTablesWithFiles = array(
35 'RayMp3Files' => array(
40 'RayVideoFiles' => array(
42 '.m4v',
'.mp4',
'.webm',
'.flv',
'.jpg',
'_small.jpg',
'_small_2x.jpg',
45 'RayVideo_commentsFiles' => array(
47 '.m4v',
'.mp4',
'.webm',
'.flv',
'.jpg',
'_small.jpg',
'_small_2x.jpg',
55 switch ($sTableName) {
57 $sPrefix =
'mp3/files/';
60 $sPrefix =
'video/files/';
62 case 'RayVideo_commentsFiles':
63 $sPrefix =
'video_comments/files/';
66 return $this->_sFilesBaseDir . $sPrefix . $sFileName .
$sExt;