Exemplo n.º 1
0
 public function check()
 {
     if ($this->Type == self::PRODUCT) {
         $Page = new Content_Page();
         $this->Conflict = $Page->findSize(array('Link = /' . $this->Link)) > 0;
     } else {
         if ($this->Type == self::PAGE) {
             $Product = new Product();
             $this->Conflict = $Product->findSize(array('Slug = ' . ltrim($this->Link, '/'))) > 0;
         }
     }
 }