forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"REPOSITORY, UPGRADE/MDL-18354, upgrade/install repository plugins us…
…ing moodle hook"
- Loading branch information
dongsheng
committed
Mar 10, 2009
1 parent
f13ffcd
commit 8763ab7
Showing
8 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
function xmldb_repository_local_install() { | ||
global $CFG; | ||
$result = true; | ||
require_once($CFG->dirroot.'/repository/lib.php'); | ||
$local_plugin = new repository_type('local', array(), true); | ||
if(!$id = $local_plugin->create(true)) { | ||
$result = false; | ||
} | ||
return $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
function xmldb_repository_local_upgrade($oldversion) { | ||
$result = true; | ||
/** | ||
if ($result && $oldversion < 2009031000) { | ||
} | ||
*/ | ||
return $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
$plugin->version = 2009031000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
function xmldb_repository_upload_install() { | ||
global $CFG; | ||
$result = true; | ||
require_once($CFG->dirroot.'/repository/lib.php'); | ||
$upload_plugin = new repository_type('upload', array(), true); | ||
if (!$id = $upload_plugin->create(true)) { | ||
$result = false; | ||
} | ||
return $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
function xmldb_repository_upload_upgrade($oldversion) { | ||
$result = true; | ||
/** | ||
if ($result && $oldversion < 2009031000) { | ||
} | ||
*/ | ||
return $result; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
$plugin->version = 2009031000; |