@@ -66,7 +66,7 @@ |
||
66 | 66 | * Set url |
67 | 67 | * |
68 | 68 | * @param $url |
69 | - * @return AccessUrlRelCourse |
|
69 | + * @return SessionCategory |
|
70 | 70 | */ |
71 | 71 | public function setUrl($url) |
72 | 72 | { |
@@ -94,7 +94,7 @@ |
||
94 | 94 | /** |
95 | 95 | * Get id |
96 | 96 | * |
97 | - * @return string |
|
97 | + * @return integer |
|
98 | 98 | */ |
99 | 99 | public function getId() |
100 | 100 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | public function editorReplace() |
49 | 49 | { |
50 | - $toolbar = new Toolbar\Basic($this->urlGenerator, $this->toolbarSet, $this->config, 'TinyMce'); |
|
50 | + $toolbar = new Toolbar\Basic($this->urlGenerator, $this->toolbarSet, $this->config, 'TinyMce'); |
|
51 | 51 | $toolbar->setLanguage($this->getLocale()); |
52 | 52 | $config = $toolbar->getConfig(); |
53 | 53 | $config['selector'] = "#".$this->name; |
@@ -22,8 +22,8 @@ |
||
22 | 22 | "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", |
23 | 23 | "save table contextmenu directionality emoticons template paste textcolor" |
24 | 24 | ), |
25 | - 'content_css'=> "css/content.css", |
|
26 | - 'toolbar' => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons", |
|
25 | + 'content_css'=> "css/content.css", |
|
26 | + 'toolbar' => "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l ink image | print preview media fullpage | forecolor backcolor emoticons", |
|
27 | 27 | 'file_browser_callback' => 'elFinderBrowser' |
28 | 28 | ); |
29 | 29 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'driver' => 'HomeDriver', |
32 | 32 | 'alias' => get_lang('Portal'), |
33 | 33 | 'path' => $home, |
34 | - 'URL' => api_get_path(WEB_PATH) . 'home', |
|
34 | + 'URL' => api_get_path(WEB_PATH).'home', |
|
35 | 35 | 'accessControl' => array($this, 'access'), |
36 | 36 | ); |
37 | 37 | } |
@@ -25,8 +25,8 @@ |
||
25 | 25 | mkdir($dir); |
26 | 26 | } |
27 | 27 | |
28 | - if (!is_dir($dir . 'my_files')) { |
|
29 | - mkdir($dir . 'my_files'); |
|
28 | + if (!is_dir($dir.'my_files')) { |
|
29 | + mkdir($dir.'my_files'); |
|
30 | 30 | } |
31 | 31 | } |
32 | 32 | } |
@@ -27,12 +27,12 @@ discard block |
||
27 | 27 | if (!empty($courseInfo)) { |
28 | 28 | |
29 | 29 | $coursePath = api_get_path(SYS_COURSE_PATH); |
30 | - $courseDir = $courseInfo['directory'] . '/document'; |
|
31 | - $baseDir = $coursePath . $courseDir; |
|
30 | + $courseDir = $courseInfo['directory'].'/document'; |
|
31 | + $baseDir = $coursePath.$courseDir; |
|
32 | 32 | |
33 | 33 | // Creates shared folder |
34 | 34 | |
35 | - if (!file_exists($baseDir . '/shared_folder')) { |
|
35 | + if (!file_exists($baseDir.'/shared_folder')) { |
|
36 | 36 | $title = get_lang('UserFolders'); |
37 | 37 | $folderName = '/shared_folder'; |
38 | 38 | //$groupId = 0; |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | // Creates user-course folder |
54 | - if (!file_exists($baseDir . '/shared_folder/sf_user_' . $userId)) { |
|
54 | + if (!file_exists($baseDir.'/shared_folder/sf_user_'.$userId)) { |
|
55 | 55 | $title = $userInfo['complete_name']; |
56 | - $folderName = '/shared_folder/sf_user_' . $userId; |
|
56 | + $folderName = '/shared_folder/sf_user_'.$userId; |
|
57 | 57 | $visibility = 1; |
58 | 58 | create_unexisting_directory( |
59 | 59 | $courseInfo, |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $this->time = $this->utime(); |
32 | 32 | $this->debug = (isset($opts['debug']) && $opts['debug'] ? true : false); |
33 | 33 | $this->timeout = (isset($opts['timeout']) ? $opts['timeout'] : 0); |
34 | - $this->netVolumesSessionKey = !empty($opts['netVolumesSessionKey'])? $opts['netVolumesSessionKey'] : 'elFinderNetVolumes'; |
|
34 | + $this->netVolumesSessionKey = !empty($opts['netVolumesSessionKey']) ? $opts['netVolumesSessionKey'] : 'elFinderNetVolumes'; |
|
35 | 35 | $this->callbackWindowURL = (isset($opts['callbackWindowURL']) ? $opts['callbackWindowURL'] : ''); |
36 | 36 | |
37 | 37 | // setlocale and global locale regists to elFinder::locale |
@@ -46,20 +46,20 @@ discard block |
||
46 | 46 | $_reqCmd = isset($_req['cmd']) ? $_req['cmd'] : ''; |
47 | 47 | foreach ($opts['bind'] as $cmd => $handlers) { |
48 | 48 | $doRegist = (strpos($cmd, '*') !== false); |
49 | - if (! $doRegist) { |
|
49 | + if (!$doRegist) { |
|
50 | 50 | $_getcmd = create_function('$cmd', 'list($ret) = explode(\'.\', $cmd);return trim($ret);'); |
51 | 51 | $doRegist = ($_reqCmd && in_array($_reqCmd, array_map($_getcmd, explode(' ', $cmd)))); |
52 | 52 | } |
53 | 53 | if ($doRegist) { |
54 | - if (! is_array($handlers) || is_object($handlers[0])) { |
|
54 | + if (!is_array($handlers) || is_object($handlers[0])) { |
|
55 | 55 | $handlers = array($handlers); |
56 | 56 | } |
57 | - foreach($handlers as $handler) { |
|
57 | + foreach ($handlers as $handler) { |
|
58 | 58 | if ($handler) { |
59 | 59 | if (is_string($handler) && strpos($handler, '.')) { |
60 | 60 | list($_domain, $_name, $_method) = array_pad(explode('.', $handler), 3, ''); |
61 | 61 | if (strcasecmp($_domain, 'plugin') === 0) { |
62 | - if ($plugin = $this->getPluginInstance($_name, isset($opts['plugin'][$_name])? $opts['plugin'][$_name] : array()) |
|
62 | + if ($plugin = $this->getPluginInstance($_name, isset($opts['plugin'][$_name]) ? $opts['plugin'][$_name] : array()) |
|
63 | 63 | and method_exists($plugin, $_method)) { |
64 | 64 | $this->bind($cmd, array($plugin, $_method)); |
65 | 65 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @var array |
18 | 18 | */ |
19 | 19 | public $defaultPlugins = array( |
20 | - 'adobeair', |
|
20 | + 'adobeair', |
|
21 | 21 | 'ajax', |
22 | 22 | 'audio', |
23 | 23 | 'bidi', |
@@ -35,30 +35,30 @@ discard block |
||
35 | 35 | 'iframe', |
36 | 36 | 'iframedialog', |
37 | 37 | 'indentblock', |
38 | - 'justify', |
|
39 | - 'language', |
|
40 | - 'lineutils', |
|
41 | - 'liststyle', |
|
42 | - 'newpage', |
|
43 | - 'oembed', |
|
44 | - 'pagebreak', |
|
45 | - 'preview', |
|
46 | - 'print', |
|
47 | - 'save', |
|
48 | - 'selectall', |
|
49 | - 'sharedspace', |
|
50 | - 'showblocks', |
|
51 | - 'smiley', |
|
52 | - 'sourcedialog', |
|
53 | - 'stylesheetparser', |
|
54 | - 'tableresize', |
|
55 | - 'templates', |
|
56 | - 'uicolor', |
|
57 | - 'video', |
|
58 | - 'widget', |
|
59 | - 'wikilink', |
|
60 | - 'wordcount', |
|
61 | - 'xml' |
|
38 | + 'justify', |
|
39 | + 'language', |
|
40 | + 'lineutils', |
|
41 | + 'liststyle', |
|
42 | + 'newpage', |
|
43 | + 'oembed', |
|
44 | + 'pagebreak', |
|
45 | + 'preview', |
|
46 | + 'print', |
|
47 | + 'save', |
|
48 | + 'selectall', |
|
49 | + 'sharedspace', |
|
50 | + 'showblocks', |
|
51 | + 'smiley', |
|
52 | + 'sourcedialog', |
|
53 | + 'stylesheetparser', |
|
54 | + 'tableresize', |
|
55 | + 'templates', |
|
56 | + 'uicolor', |
|
57 | + 'video', |
|
58 | + 'widget', |
|
59 | + 'wikilink', |
|
60 | + 'wordcount', |
|
61 | + 'xml' |
|
62 | 62 | ); |
63 | 63 | |
64 | 64 | /** |
@@ -70,6 +70,8 @@ |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @inheritdoc |
73 | + * @param string $toolbar |
|
74 | + * @param string $prefix |
|
73 | 75 | */ |
74 | 76 | public function __construct( |
75 | 77 | $toolbar = null, |