diff options
| author | wjames5 <will@tekimaki.com> | 2008-10-25 01:24:04 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-10-25 01:24:04 +0000 |
| commit | 19c3894e82bdf0da607c7c2bf06a823bd80e4090 (patch) | |
| tree | ffa2d0ec4e29a429db79c618a65c76d083fb1946 /LibertyAttachable.php | |
| parent | 47839033d5fff0c07c936834245e6057ae6472dd (diff) | |
| download | liberty-19c3894e82bdf0da607c7c2bf06a823bd80e4090.tar.gz liberty-19c3894e82bdf0da607c7c2bf06a823bd80e4090.tar.bz2 liberty-19c3894e82bdf0da607c7c2bf06a823bd80e4090.zip | |
if verify fails anywhere along the class chain then process parent verify checks so we get all errors in one shot - saving the user much headaches. also introduce verify service so services can report verification errors
Diffstat (limited to 'LibertyAttachable.php')
| -rw-r--r-- | LibertyAttachable.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/LibertyAttachable.php b/LibertyAttachable.php index 8faf4b9..75abbd7 100644 --- a/LibertyAttachable.php +++ b/LibertyAttachable.php @@ -3,7 +3,7 @@ * Management of Liberty Content * * @package liberty - * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.166 2008/10/19 08:14:21 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyAttachable.php,v 1.167 2008/10/25 01:24:04 wjames5 Exp $ * @author spider <spider@steelsun.com> */ // +----------------------------------------------------------------------+ @@ -679,6 +679,11 @@ class LibertyAttachable extends LibertyContent { $pParamHash['liberty_attachments']['primary'] = NULL; } + // if we have an error we get them all by checking parent classes for additional errors + if( count( $this->mErrors ) > 0 ){ + parent::verify( $pParamHash ); + } + return ( count( $this->mErrors ) == 0 ); } |
