Skip to content

Commit 083ef82

Browse files
committed
Beta-5
1 parent 74f8f1e commit 083ef82

File tree

4 files changed

+58
-58
lines changed

4 files changed

+58
-58
lines changed

develnext-doc/src/ide/doc/commands/DocCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getCategory()
3333

3434
public function getIcon()
3535
{
36-
return 'icons/help16.png';
36+
return 'icons/help16.gif';
3737
}
3838

3939
public function getAccelerator()
Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
<?php
2-
namespace ide\doc\formats;
3-
4-
use ide\doc\editors\DocEditor;
5-
use ide\doc\editors\DocEntryEditor;
6-
use ide\editors\AbstractEditor;
7-
use ide\formats\AbstractFormat;
8-
use php\lib\str;
9-
10-
/**
11-
* Class DocFormat
12-
* @package ide\doc\formats
13-
*/
14-
class DocFormat extends AbstractFormat
15-
{
16-
/**
17-
* @param $file
18-
* @return AbstractEditor
19-
*/
20-
public function createEditor($file)
21-
{
22-
if (str::startsWith($file, '~doc/edit/')) {
23-
return new DocEntryEditor($file);
24-
}
25-
26-
return new DocEditor($file);
27-
}
28-
29-
public function getTitle($path)
30-
{
31-
return "Документация";
32-
}
33-
34-
public function getIcon()
35-
{
36-
return "icons/help16.png";
37-
}
38-
39-
/**
40-
* @param $file
41-
* @return bool
42-
*/
43-
public function isValid($file)
44-
{
45-
return str::startsWith($file, "~doc");
46-
}
47-
48-
/**
49-
* @param $any
50-
* @return mixed
51-
*/
52-
public function register($any)
53-
{
54-
55-
}
1+
<?php
2+
namespace ide\doc\formats;
3+
4+
use ide\doc\editors\DocEditor;
5+
use ide\doc\editors\DocEntryEditor;
6+
use ide\editors\AbstractEditor;
7+
use ide\formats\AbstractFormat;
8+
use php\lib\str;
9+
10+
/**
11+
* Class DocFormat
12+
* @package ide\doc\formats
13+
*/
14+
class DocFormat extends AbstractFormat
15+
{
16+
/**
17+
* @param $file
18+
* @return AbstractEditor
19+
*/
20+
public function createEditor($file)
21+
{
22+
if (str::startsWith($file, '~doc/edit/')) {
23+
return new DocEntryEditor($file);
24+
}
25+
26+
return new DocEditor($file);
27+
}
28+
29+
public function getTitle($path)
30+
{
31+
return "Документация";
32+
}
33+
34+
public function getIcon()
35+
{
36+
return "icons/help16.gif";
37+
}
38+
39+
/**
40+
* @param $file
41+
* @return bool
42+
*/
43+
public function isValid($file)
44+
{
45+
return str::startsWith($file, "~doc");
46+
}
47+
48+
/**
49+
* @param $any
50+
* @return mixed
51+
*/
52+
public function register($any)
53+
{
54+
55+
}
5656
}
591 Bytes
Loading

jphp-app-framework/src/script/storage/IniStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function load()
9393
}
9494

9595
} catch (IOException $e) {
96-
$this->trigger('error', $e);
96+
$this->trigger('error', ['error' => $e]);
9797
return false;
9898
}
9999
}
@@ -136,7 +136,7 @@ public function save()
136136
$stream->close();
137137
}
138138
} catch (IOException $e) {
139-
$this->trigger('error', $e);
139+
$this->trigger('error', ['error' => $e]);
140140
return false;
141141
}
142142
}

0 commit comments

Comments
 (0)