/**
  * Is the given WireArray identical to this one?
  *
  * @param WireArray $items
  * @param bool|int $strict
  * @return bool
  *
  */
 public function isIdentical(WireArray $items, $strict = true)
 {
     $isIdentical = parent::isIdentical($items, false);
     // force non-strict
     if ($isIdentical && $strict) {
         if ($this->of() != $items->of()) {
             $isIdentical = false;
         }
         if ($isIdentical && (string) $this->getPage() !== (string) $items->getPage()) {
             $isIdentical = false;
         }
         if ($isIdentical && (string) $this->getField() !== (string) $items->getField()) {
             $isIdentical = false;
         }
     }
     return $isIdentical;
 }
Example #2
0
 /**
  * Is the given Pagefiles identical to this one?
  *
  * @param WireArray $items
  * @param bool|int $strict
  * @return bool
  *
  */
 public function isIdentical(WireArray $items, $strict = true)
 {
     if ($strict) {
         return $this === $items;
     }
     return parent::isIdentical($items, $strict);
 }