|
@@ 949-952 (lines=4) @@
|
| 946 |
|
public function isValid() |
| 947 |
|
{ |
| 948 |
|
if (is_string($this->m_raw) && !empty($this->raw)) return true; |
| 949 |
|
if (!isset($this->m_title)) |
| 950 |
|
$this->m_title = ""; |
| 951 |
|
else if (!is_string($this->m_title) || empty($this->m_title)) |
| 952 |
|
return false; |
| 953 |
|
if (!isset($this->m_content)) |
| 954 |
|
$this->m_content = ""; |
| 955 |
|
else if (!is_string($this->m_content) || empty($this->m_content)) |
|
@@ 953-956 (lines=4) @@
|
| 950 |
|
$this->m_title = ""; |
| 951 |
|
else if (!is_string($this->m_title) || empty($this->m_title)) |
| 952 |
|
return false; |
| 953 |
|
if (!isset($this->m_content)) |
| 954 |
|
$this->m_content = ""; |
| 955 |
|
else if (!is_string($this->m_content) || empty($this->m_content)) |
| 956 |
|
return false; |
| 957 |
|
if (!is_int($this->m_type) || $this->m_type < self::TYPE_NOTIFICATION || $this->m_type > self::TYPE_MESSAGE) return false; |
| 958 |
|
if (!is_int($this->m_multiPkg) || $this->m_multiPkg < 0 || $this->m_multiPkg > 1) return false; |
| 959 |
|
if ($this->m_type == self::TYPE_NOTIFICATION) { |