forked from marcelog/PAMI
-
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.
Merge pull request #1 from morvai88/sorcery_actions
Sorcery actions
Showing
5 changed files
with
298 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
src/PAMI/Message/Action/SorceryMemoryCacheExpireAction.php
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,58 @@ | ||
<?php | ||
/** | ||
* SorceryMemoryCacheExpire action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @version SVN: $Id$ | ||
* @link http://marcelog.github.com/PAMI/ | ||
* | ||
* Copyright 2023 Sperl Viktor <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
namespace PAMI\Message\Action; | ||
|
||
/** | ||
* SorceryMemoryCacheExpire action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @link http://marcelog.github.com/PAMI/ | ||
*/ | ||
class SorceryMemoryCacheExpireAction extends ActionMessage | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $cache Cache name. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($cache) | ||
{ | ||
parent::__construct('SorceryMemoryCacheExpire'); | ||
$this->setKey('Cache', $cache); | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
src/PAMI/Message/Action/SorceryMemoryCacheExpireObjectAction.php
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,60 @@ | ||
<?php | ||
/** | ||
* SorceryMemoryCacheExpireObject action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @version SVN: $Id$ | ||
* @link http://marcelog.github.com/PAMI/ | ||
* | ||
* Copyright 2023 Sperl Viktor <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
namespace PAMI\Message\Action; | ||
|
||
/** | ||
* SorceryMemoryCacheExpireObject action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @link http://marcelog.github.com/PAMI/ | ||
*/ | ||
class SorceryMemoryCacheExpireObjectAction extends ActionMessage | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $cache Cache name. | ||
* @param string $object Object name. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($cache, $object) | ||
{ | ||
parent::__construct('SorceryMemoryCacheExpireObject'); | ||
$this->setKey('Cache', $cache); | ||
$this->setKey('Object', $object); | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
src/PAMI/Message/Action/SorceryMemoryCachePopulateAction.php
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,58 @@ | ||
<?php | ||
/** | ||
* SorceryMemoryCachePopulate action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @version SVN: $Id$ | ||
* @link http://marcelog.github.com/PAMI/ | ||
* | ||
* Copyright 2023 Sperl Viktor <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
namespace PAMI\Message\Action; | ||
|
||
/** | ||
* SorceryMemoryCachePopulate action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @link http://marcelog.github.com/PAMI/ | ||
*/ | ||
class SorceryMemoryCachePopulateAction extends ActionMessage | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $cache Cache name. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($cache) | ||
{ | ||
parent::__construct('SorceryMemoryCachePopulate'); | ||
$this->setKey('Cache', $cache); | ||
} | ||
} |
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,58 @@ | ||
<?php | ||
/** | ||
* SorceryMemoryCacheStale action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @version SVN: $Id$ | ||
* @link http://marcelog.github.com/PAMI/ | ||
* | ||
* Copyright 2023 Sperl Viktor <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
namespace PAMI\Message\Action; | ||
|
||
/** | ||
* SorceryMemoryCacheStale action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @link http://marcelog.github.com/PAMI/ | ||
*/ | ||
class SorceryMemoryCacheStaleAction extends ActionMessage | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $cache Cache name. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($cache) | ||
{ | ||
parent::__construct('SorceryMemoryCacheStale'); | ||
$this->setKey('Cache', $cache); | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
src/PAMI/Message/Action/SorceryMemoryCacheStaleObjectAction.php
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,64 @@ | ||
<?php | ||
/** | ||
* SorceryMemoryCacheStaleObject action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @version SVN: $Id$ | ||
* @link http://marcelog.github.com/PAMI/ | ||
* | ||
* Copyright 2023 Sperl Viktor <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
namespace PAMI\Message\Action; | ||
|
||
/** | ||
* SorceryMemoryCacheStaleObject action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Sperl Viktor <[email protected]> | ||
* @license http://marcelog.github.com/PAMI/ Apache License 2.0 | ||
* @link http://marcelog.github.com/PAMI/ | ||
*/ | ||
class SorceryMemoryCacheStaleObjectAction extends ActionMessage | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $cache Cache name. | ||
* @param string $object Object name. | ||
* @param bool $reload Reload from backend. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($cache, $object, $reload = false) | ||
{ | ||
parent::__construct('SorceryMemoryCacheStaleObject'); | ||
$this->setKey('Cache', $cache); | ||
$this->setKey('Object', $object); | ||
if ($reload !== false) { | ||
$this->setKey('Reload', 'true'); | ||
} | ||
} | ||
} |