summaryrefslogtreecommitdiffstats
path: root/library/SSRS/Object/ReportParameter.php
diff options
context:
space:
mode:
authorArron Woods <aw@chartblocks.com>2015-05-15 15:19:46 +0100
committerArron Woods <aw@chartblocks.com>2015-05-15 15:19:46 +0100
commit92364a9965c75b8703271b76e689ed726dd74c27 (patch)
treee2c2f8cc401d004a84eacedfb7e094fde3b64409 /library/SSRS/Object/ReportParameter.php
parent0994427a5b75bba964cd56142e7f5d34a79a2422 (diff)
downloadphp-ssrs-92364a9965c75b8703271b76e689ed726dd74c27.zip
php-ssrs-92364a9965c75b8703271b76e689ed726dd74c27.tar.gz
php-ssrs-92364a9965c75b8703271b76e689ed726dd74c27.tar.bz2
Form rendering with ZendFramework2
Diffstat (limited to 'library/SSRS/Object/ReportParameter.php')
-rwxr-xr-xlibrary/SSRS/Object/ReportParameter.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/library/SSRS/Object/ReportParameter.php b/library/SSRS/Object/ReportParameter.php
index 60a09a2..d00e464 100755
--- a/library/SSRS/Object/ReportParameter.php
+++ b/library/SSRS/Object/ReportParameter.php
@@ -95,11 +95,27 @@ class ReportParameter extends ObjectAbstract {
*
* @return bool
*/
+ public function hasMissingValidValue() {
+ return ($this->getState() == 'MissingValidValue');
+ }
+
+ /**
+ *
+ * @return bool
+ */
public function getState() {
return key_exists('State', $this->data) ? $this->data['State'] : null;
}
/**
+ *
+ * @return string
+ */
+ public function getType() {
+ return $this->data['Type'];
+ }
+
+ /**
*
* @return bool
*/
@@ -115,4 +131,12 @@ class ReportParameter extends ObjectAbstract {
return ($this->isMultiValue() || (!empty($this->data['ValidValues']) && is_array($this->data['ValidValues']) && count($this->data['ValidValues']) > 0));
}
+ /**
+ *
+ * @return bool
+ */
+ public function isAllowBlank() {
+ return $this->data['AllowBlank'];
+ }
+
}