diff options
author | Chris Cornutt <chris.cornutt@hp.com> | 2015-01-07 15:32:29 -0600 |
---|---|---|
committer | Chris Cornutt <chris.cornutt@hp.com> | 2015-01-07 15:32:29 -0600 |
commit | 9c85f7ecd541b0a063d95b2dd5554e69ea6a0146 (patch) | |
tree | 9f1b8e49317f8925fd12f2f19b39e142e483c29f /src | |
parent | 9090bd67a7913c30e33654e0b06645ba8bf4838f (diff) | |
download | gatekeeper-9c85f7ecd541b0a063d95b2dd5554e69ea6a0146.zip gatekeeper-9c85f7ecd541b0a063d95b2dd5554e69ea6a0146.tar.gz gatekeeper-9c85f7ecd541b0a063d95b2dd5554e69ea6a0146.tar.bz2 |
updating Stub data source to shorten it a bit;
Diffstat (limited to 'src')
-rw-r--r-- | src/Psecio/Gatekeeper/DataSource/Stub.php | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/src/Psecio/Gatekeeper/DataSource/Stub.php b/src/Psecio/Gatekeeper/DataSource/Stub.php index 25dffc0..1070608 100644 --- a/src/Psecio/Gatekeeper/DataSource/Stub.php +++ b/src/Psecio/Gatekeeper/DataSource/Stub.php @@ -10,10 +10,7 @@ class Stub extends \Psecio\Gatekeeper\DataSource * @param \Modler\Model $model Model instance * @return boolean Success/fail of action */ - public function save(\Modler\Model $model) - { - - } + public function save(\Modler\Model $model){} /** * Create a new record with model given @@ -21,10 +18,7 @@ class Stub extends \Psecio\Gatekeeper\DataSource * @param \Modler\Model $model Model instance * @return boolean Success/fail of action */ - public function create(\Modler\Model $model) - { - - } + public function create(\Modler\Model $model){} /** * Update the record for the given model @@ -32,10 +26,7 @@ class Stub extends \Psecio\Gatekeeper\DataSource * @param \Modler\Model $model Model instance * @return boolean Success/fail of action */ - public function update(\Modler\Model $model) - { - - } + public function update(\Modler\Model $model){} /** * Delete the record defined by the model data @@ -43,10 +34,7 @@ class Stub extends \Psecio\Gatekeeper\DataSource * @param \Modler\Model $model Model instance * @return boolean Success/fail of action */ - public function delete(\Modler\Model $model) - { - - } + public function delete(\Modler\Model $model){} /** * Find and populate a model based on the model type and where criteria @@ -55,18 +43,19 @@ class Stub extends \Psecio\Gatekeeper\DataSource * @param array $where "Where" data to locate record * @return boolean Success/fail of action */ - public function find(\Modler\Model $model, array $where = array()) - { - - } + public function find(\Modler\Model $model, array $where = array()){} /** * Return the last error from action taken on the datasource * * @return string Error string */ - public function getLastError() - { + public function getLastError(){} - } + /** + * Fetch the data from the source + * + * @return boolean Success/fail of action + */ + public function fetch(){} }
\ No newline at end of file |