Skip to content

Commit

Permalink
Merge pull request #1 from morvai88/sorcery_actions
Browse files Browse the repository at this point in the history
Sorcery actions
viktike authored Sep 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 4fa7754 + b019e96 commit 1523b5a
Showing 5 changed files with 298 additions and 0 deletions.
58 changes: 58 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCacheExpireAction.php
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 src/PAMI/Message/Action/SorceryMemoryCacheExpireObjectAction.php
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 src/PAMI/Message/Action/SorceryMemoryCachePopulateAction.php
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);
}
}
58 changes: 58 additions & 0 deletions src/PAMI/Message/Action/SorceryMemoryCacheStaleAction.php
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 src/PAMI/Message/Action/SorceryMemoryCacheStaleObjectAction.php
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');
}
}
}

0 comments on commit 1523b5a

Please sign in to comment.