Home
last modified time | relevance | path

Searched refs:farm_util (Results 1 – 11 of 11) sorted by relevance

/plugin/farmsync/action/
H A Dajax.php26 private $farm_util; variable in action_plugin_farmsync_ajax
29 $this->farm_util = new FarmSyncUtil();
60 $schemas = $this->farm_util->getAllStructSchemasList($source);
97 $this->farm_util->saveRemoteMedia($source, $target, $page);
109 $this->farm_util->clearAnimalCache($target);
117 $this->farm_util->clearAnimalCache($target);
137 $sourceModTime = $this->farm_util->getRemoteFilemtime($source, $page);
138 …$this->farm_util->saveRemotePage($target, $page, $this->farm_util->readRemotePage($source, $page),…
143 $sourceModTime = $this->farm_util->getRemoteFilemtime($source, $page);
147 …$this->farm_util->replaceRemoteFile($targetArchiveFileName, $this->farm_util->readRemotePage($sour…
[all …]
/plugin/farmsync/meta/
H A DMediaUpdates.php10 $sourceModTime = $this->farm_util->getRemoteFilemtime($source, $medium, true);
13 if (!$this->farm_util->remoteMediaExists($target, $medium)) {
14 $this->farm_util->saveRemoteMedia($source, $target, $medium);
19 $targetModTime = $this->farm_util->getRemoteFilemtime($target, $medium, true);
20 …($targetModTime == $sourceModTime && $this->farm_util->readRemoteMedia($source, $medium) == $this-…
25farm_util->remoteMediaExists($source, $medium, $targetModTime) && $this->farm_util->readRemoteMedi…
26 $this->farm_util->saveRemoteMedia($source, $target, $medium);
31 …($this->farm_util->remoteMediaExists($target, $medium, $sourceModTime) && $this->farm_util->readRe…
70 … $documentdir = dirname($this->farm_util->getRemoteMediaFilename($source, $cleanline, 0, false));
89 … if (!$this->farm_util->remoteMediaExists($source, $document) || is_dir(mediaFN($document))) {
H A DPageUpdates.php10 $sourceModTime = $this->farm_util->getRemoteFilemtime($source, $page);
11 $sourceText = $this->farm_util->readRemotePage($source, $page);
13 if (!$this->farm_util->remotePageExists($target, $page)) {
14 $this->farm_util->saveRemotePage($target, $page, $sourceText, $sourceModTime);
19 $targetModTime = $this->farm_util->getRemoteFilemtime($target, $page);
20 $targetText = $this->farm_util->readRemotePage($target, $page);
27 $sourceArchiveText = $this->farm_util->readRemotePage($source, $page, null, $targetModTime);
29 $this->farm_util->saveRemotePage($target, $page, $sourceText, $sourceModTime);
36 $commonroot = $this->farm_util->findCommonAncestor($page, $source, $target);
50 $this->farm_util->saveRemotePage($target, $page, $final);
[all …]
H A DTemplateUpdates.php9 $sourceModTime = $this->farm_util->getRemoteFilemtime($source, $template, false, false);
12 $targetFN = $this->farm_util->getRemoteFilename($target, $template, null, false);
13 $sourceContent = $this->farm_util->readRemotePage($source, $template, false);
15 if (!$this->farm_util->remotePageExists($target, $template, false)) {
16 $this->farm_util->replaceRemoteFile($targetFN, $sourceContent, $sourceModTime);
21 $targetModTime = $this->farm_util->getRemoteFilemtime($target, $template, false, false);
22 if ($sourceContent == $this->farm_util->readRemotePage($target, $template, false)) {
28 $this->farm_util->replaceRemoteFile($targetFN, $sourceContent, $sourceModTime);
119 … $documentdir = dirname($this->farm_util->getRemoteFilename($source, $cleanline, null, false));
136 if (!$this->farm_util->remotePageExists($source, $document, false)) {
H A DEntityUpdates.php11 public $farm_util; variable in dokuwiki\\plugin\\farmsync\\meta\\EntityUpdates
21 $this->farm_util = new FarmSyncUtil();
36 $this->farm_util->clearAnimalCache($target);
97 if ($this->farm_util->remotePageExists($source, $page . $conf['start'])) {
100 } elseif ($this->farm_util->remotePageExists($source, $page . noNS(cleanID($page)))) {
103 } elseif ($this->farm_util->remotePageExists($source, $page)) {
H A DStructUpdates.php12 $result = $this->farm_util->updateAnimalStructSchema($target, $schemaName, $json);
32 …$this->assignments = $this->farm_util->getAnimalStructAssignments($this->source, $this->assignment…
34 $schemas = $this->farm_util->getAnimalStructSchemasJSON($this->source, $schemas);
42 $this->farm_util->replaceAnimalStructAssignments($target, $this->assignments);
/plugin/farmsync/_test/
H A DaddRemoteChangelogRevision.test.php30 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
37 $result = $farm_util->addRemoteChangelogRevision($fn, $testline, false);
48 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
54 $result = $farm_util->addRemoteChangelogRevision($fn, $testline, false);
72 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
78 $result = $farm_util->addRemoteChangelogRevision($fn, $testline, true);
91 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
97 $result = $farm_util->addRemoteChangelogRevision($fn, $testline, false);
115 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
141 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
[all …]
H A DFarmSyncUtil.test.php24 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
28 $actual_fn = $farm_util->getRemoteFilename('testanimal', ':start');
36 $farm_util = new \dokuwiki\plugin\farmsync\meta\FarmSyncUtil();
39 $farm_util->getRemoteFilename('otheranimal', ':start', null, false);
40 $actual_fn = $farm_util->getRemoteFilename('testanimal', ':start', null, false);
H A DpageUpdate.test.php35 $pageUpdater->farm_util = $mock_farm_util;
62 $pageUpdater->farm_util = $mock_farm_util;
94 $pageUpdater->farm_util = $mock_farm_util;
123 $pageUpdater->farm_util = $mock_farm_util;
150 $pageUpdater->farm_util = $mock_farm_util;
182 $pageUpdater->farm_util = $mock_farm_util;
H A DgetPagesFromLine.test.php63 $pageUpdater->farm_util = $mock_farm_util;
142 $templateUpdater->farm_util = $mock_farm_util;
197 $mediaUpdater->farm_util = $mock_farm_util;
/plugin/farmsync/
H A Dadmin.php31 public $farm_util; variable in admin_plugin_farmsync
37 $this->farm_util = new FarmSyncUtil();
61 $animals = $this->farm_util->getAllAnimals();