-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added bridge action example. added GetConfig action
- Loading branch information
Showing
3 changed files
with
57 additions
and
5 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 |
---|---|---|
@@ -1 +1,47 @@ | ||
<?php | ||
/** | ||
* GetConfig action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Marcelo Gornstein <marcelog@gmail.com> | ||
* @license http://www.noneyet.ar/ Apache License 2.0 | ||
* @version SVN: $Id$ | ||
* @link http://www.noneyet.ar/ | ||
*/ | ||
namespace PAMI\Message\Action; | ||
|
||
/** | ||
* GetConfig action message. | ||
* | ||
* PHP Version 5 | ||
* | ||
* @category Pami | ||
* @package Message | ||
* @subpackage Action | ||
* @author Marcelo Gornstein <marcelog@gmail.com> | ||
* @license http://www.noneyet.ar/ Apache License 2.0 | ||
* @link http://www.noneyet.ar/ | ||
*/ | ||
class GetConfigAction extends ActionMessage | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param string $filename Configuration filename (e.g.: foo.conf). | ||
* @param boolean $category Category in configuration file. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($filename, $category = false) | ||
{ | ||
parent::__construct('GetConfig'); | ||
$this->setKey('Filename', $filename); | ||
if ($category != false) { | ||
$this->setKey('Category', $category); | ||
} | ||
} | ||
} |