Пример #1
0
 /**
  * @return bool
  */
 private function fieldHasBrother()
 {
     $this->db->setSQL("SELECT `id` FROM `forms_field_options` WHERE options LIKE '%\"name\":\"{$this->name}\"%'");
     $this->db->fetchRecords(PDO::FETCH_ASSOC);
     $count = $this->db->rowCount();
     if ($count >= 2) {
         return true;
     } else {
         return false;
     }
 }