コード例 #1
0
ファイル: message.php プロジェクト: nooku/nooku-framework
 /**
  * Check if the offset exists
  *
  * Required by interface ArrayAccess
  *
  * @param   int   $offset
  * @return  bool
  */
 public function offsetExists($offset)
 {
     return ObjectArray::offsetExists($offset);
 }
コード例 #2
0
ファイル: abstract.php プロジェクト: nooku/nooku-framework
 /**
  * Test existence of a property
  *
  * @param  string  $name The property name.
  * @return boolean
  */
 public function hasProperty($name)
 {
     $result = false;
     //Handle computed properties
     if (!parent::offsetExists($name) && !empty($name)) {
         $properties = $this->getComputedProperties();
         if (isset($properties[$name])) {
             $result = true;
         }
     } else {
         $result = true;
     }
     return $result;
 }