forked from symphonists/importcsv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension.driver.php
More file actions
32 lines (28 loc) · 802 Bytes
/
extension.driver.php
File metadata and controls
32 lines (28 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
class extension_importcsv extends Extension
{
public function fetchNavigation()
{
// Author: Use the accessor function if available (Symphony 2.5)
if (is_callable(array('Symphony', 'Author'))) {
$author = Symphony::Author();
} else {
$author = Administration::instance()->Author;
}
if ($author->isDeveloper()) {
return array(
array(
'location' => __('System'),
'name' => __('Import / Export CSV'),
'link' => '/'
)
);
}
}
public function update($previousVersion = false)
{
if (file_exists(TMP.'/importcsv.csv')) {
@unlink(TMP.'/importcsv.csv');
}
}
}