diff --git a/manual/includes/_entity.md b/manual/includes/_entity.md index 88496c9..3471721 100644 --- a/manual/includes/_entity.md +++ b/manual/includes/_entity.md @@ -820,21 +820,21 @@ function createAlbumSpecification($inputGet) if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -934,14 +934,14 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } if($inputGet->getTitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate1->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesification->addAnd($predicate1); } @@ -996,7 +996,7 @@ class SpecificationUtil if($inputGet->getProducerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('producer.name', PicoPredicate::generateLikeContians($inputGet->getProducerName())); + $predicate1->like('producer.name', PicoPredicate::generateLikeContains($inputGet->getProducerName())); $spesification->addAnd($predicate1); } @@ -1007,21 +1007,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -1031,7 +1031,7 @@ class SpecificationUtil if($inputGet->getSubtitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('subtitle', PicoPredicate::generateLikeContians($inputGet->getSubtitle())); + $predicate1->like('subtitle', PicoPredicate::generateLikeContains($inputGet->getSubtitle())); $spesification->addAnd($predicate1); } @@ -1045,7 +1045,7 @@ class SpecificationUtil if($inputGet->getVocalistName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('vocalist.name', PicoPredicate::generateLikeContians($inputGet->getVocalistName())); + $predicate1->like('vocalist.name', PicoPredicate::generateLikeContains($inputGet->getVocalistName())); $spesification->addAnd($predicate1); } @@ -1059,7 +1059,7 @@ class SpecificationUtil if($inputGet->getComposerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('composer.name', PicoPredicate::generateLikeContians($inputGet->getComposerName())); + $predicate1->like('composer.name', PicoPredicate::generateLikeContains($inputGet->getComposerName())); $spesification->addAnd($predicate1); } @@ -1073,7 +1073,7 @@ class SpecificationUtil if($inputGet->getArrangerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('arranger.name', PicoPredicate::generateLikeContians($inputGet->getArrangerName())); + $predicate1->like('arranger.name', PicoPredicate::generateLikeContains($inputGet->getArrangerName())); $spesification->addAnd($predicate1); } @@ -1145,7 +1145,7 @@ class SpecificationUtil if($inputGet->getTitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate1->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesification->addAnd($predicate1); } @@ -1200,21 +1200,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -1271,7 +1271,7 @@ class SpecificationUtil if($inputGet->getLyric() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('lyric', PicoPredicate::generateLikeContians($inputGet->getLyric())); + $predicate1->like('lyric', PicoPredicate::generateLikeContains($inputGet->getLyric())); $spesification->addAnd($predicate1); } @@ -1311,21 +1311,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -1362,7 +1362,7 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -1388,7 +1388,7 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -1414,7 +1414,7 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -1440,21 +1440,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } if($inputGet->getUsername() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('username', PicoPredicate::generateLikeContians($inputGet->getUsername())); + $predicate1->like('username', PicoPredicate::generateLikeContains($inputGet->getUsername())); $spesification->addAnd($predicate1); } if($inputGet->getEmail() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('email', PicoPredicate::generateLikeContians($inputGet->getEmail())); + $predicate1->like('email', PicoPredicate::generateLikeContains($inputGet->getEmail())); $spesification->addAnd($predicate1); } diff --git a/manual/includes/_specification.md b/manual/includes/_specification.md index f2019c2..e12a73f 100644 --- a/manual/includes/_specification.md +++ b/manual/includes/_specification.md @@ -74,4 +74,4 @@ greaterThanOrEquals Static Methods: generateLikeStarts generateLikeEnds -generateLikeContians \ No newline at end of file +generateLikeContains \ No newline at end of file diff --git a/manual/index.html b/manual/index.html index cbc14a1..1a77a92 100644 --- a/manual/index.html +++ b/manual/index.html @@ -1954,21 +1954,21 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2062,14 +2062,14 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } if($inputGet->getTitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate1->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesification->addAnd($predicate1); } @@ -2124,7 +2124,7 @@

Find By Specification

if($inputGet->getProducerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('producer.name', PicoPredicate::generateLikeContians($inputGet->getProducerName())); + $predicate1->like('producer.name', PicoPredicate::generateLikeContains($inputGet->getProducerName())); $spesification->addAnd($predicate1); } @@ -2135,21 +2135,21 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2159,7 +2159,7 @@

Find By Specification

if($inputGet->getSubtitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('subtitle', PicoPredicate::generateLikeContians($inputGet->getSubtitle())); + $predicate1->like('subtitle', PicoPredicate::generateLikeContains($inputGet->getSubtitle())); $spesification->addAnd($predicate1); } @@ -2173,7 +2173,7 @@

Find By Specification

if($inputGet->getVocalistName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('vocalist.name', PicoPredicate::generateLikeContians($inputGet->getVocalistName())); + $predicate1->like('vocalist.name', PicoPredicate::generateLikeContains($inputGet->getVocalistName())); $spesification->addAnd($predicate1); } @@ -2187,7 +2187,7 @@

Find By Specification

if($inputGet->getComposerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('composer.name', PicoPredicate::generateLikeContians($inputGet->getComposerName())); + $predicate1->like('composer.name', PicoPredicate::generateLikeContains($inputGet->getComposerName())); $spesification->addAnd($predicate1); } @@ -2201,7 +2201,7 @@

Find By Specification

if($inputGet->getArrangerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('arranger.name', PicoPredicate::generateLikeContians($inputGet->getArrangerName())); + $predicate1->like('arranger.name', PicoPredicate::generateLikeContains($inputGet->getArrangerName())); $spesification->addAnd($predicate1); } @@ -2273,7 +2273,7 @@

Find By Specification

if($inputGet->getTitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate1->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesification->addAnd($predicate1); } @@ -2328,21 +2328,21 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2399,7 +2399,7 @@

Find By Specification

if($inputGet->getLyric() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('lyric', PicoPredicate::generateLikeContians($inputGet->getLyric())); + $predicate1->like('lyric', PicoPredicate::generateLikeContains($inputGet->getLyric())); $spesification->addAnd($predicate1); } @@ -2439,21 +2439,21 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2489,7 +2489,7 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -2515,7 +2515,7 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -2541,7 +2541,7 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -2567,21 +2567,21 @@

Find By Specification

if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } if($inputGet->getUsername() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('username', PicoPredicate::generateLikeContians($inputGet->getUsername())); + $predicate1->like('username', PicoPredicate::generateLikeContains($inputGet->getUsername())); $spesification->addAnd($predicate1); } if($inputGet->getEmail() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('email', PicoPredicate::generateLikeContians($inputGet->getEmail())); + $predicate1->like('email', PicoPredicate::generateLikeContains($inputGet->getEmail())); $spesification->addAnd($predicate1); } diff --git a/src/Database/PicoPredicate.php b/src/Database/PicoPredicate.php index 534b90e..1b33313 100644 --- a/src/Database/PicoPredicate.php +++ b/src/Database/PicoPredicate.php @@ -303,7 +303,7 @@ public static function generateLikeEnds($value) * @param string $value * @return string */ - public static function generateLikeContians($value) + public static function generateLikeContains($value) { return "%".$value."%"; } diff --git a/src/Database/PicoSpecification.php b/src/Database/PicoSpecification.php index 67eb9f5..7b8fbb3 100644 --- a/src/Database/PicoSpecification.php +++ b/src/Database/PicoSpecification.php @@ -65,9 +65,13 @@ public function addAnd($predicate) { $this->addFilter($predicate, self::LOGIC_AND); } - if($predicate instanceof PicoSpecification) + else if($predicate instanceof PicoSpecification) { $this->addSubfilter($predicate, self::LOGIC_AND); + } + else if(is_array($predicate) && count($predicate) > 1 && is_string($predicate[0])) + { + $this->addSubfilter(new PicoPredicate($predicate[0], $predicate[1]), self::LOGIC_AND); } return $this; } @@ -84,10 +88,14 @@ public function addOr($predicate) { $this->addFilter($predicate, self::LOGIC_OR); } - if($predicate instanceof PicoSpecification) + else if($predicate instanceof PicoSpecification) { $this->addSubfilter($predicate, self::LOGIC_OR); - } + } + else if(is_array($predicate) && count($predicate) > 1 && is_string($predicate[0])) + { + $this->addSubfilter(new PicoPredicate($predicate[0], $predicate[1]), self::LOGIC_OR); + } return $this; } @@ -360,7 +368,7 @@ public static function fromUserInput($request, $map = null) } else { - $specification->addAnd(PicoPredicate::getInstance()->like(PicoPredicate::functionLower($filter->getColumnName()), PicoPredicate::generateLikeContians(strtolower($filterValue)))); + $specification->addAnd(PicoPredicate::getInstance()->like(PicoPredicate::functionLower($filter->getColumnName()), PicoPredicate::generateLikeContains(strtolower($filterValue)))); } } } @@ -385,7 +393,7 @@ public static function fullTextSearch($columnName, $keywords) { $specification->addAnd( PicoPredicate::getInstance() - ->like(PicoPredicate::functionLower($columnName), PicoPredicate::generateLikeContians(strtolower($word))) + ->like(PicoPredicate::functionLower($columnName), PicoPredicate::generateLikeContains(strtolower($word))) ); } } diff --git a/tutorial.md b/tutorial.md index 0314faa..d78a449 100644 --- a/tutorial.md +++ b/tutorial.md @@ -2234,21 +2234,21 @@ function createAlbumSpecification($inputGet) if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2348,14 +2348,14 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } if($inputGet->getTitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate1->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesification->addAnd($predicate1); } @@ -2410,7 +2410,7 @@ class SpecificationUtil if($inputGet->getProducerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('producer.name', PicoPredicate::generateLikeContians($inputGet->getProducerName())); + $predicate1->like('producer.name', PicoPredicate::generateLikeContains($inputGet->getProducerName())); $spesification->addAnd($predicate1); } @@ -2421,21 +2421,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2445,7 +2445,7 @@ class SpecificationUtil if($inputGet->getSubtitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('subtitle', PicoPredicate::generateLikeContians($inputGet->getSubtitle())); + $predicate1->like('subtitle', PicoPredicate::generateLikeContains($inputGet->getSubtitle())); $spesification->addAnd($predicate1); } @@ -2459,7 +2459,7 @@ class SpecificationUtil if($inputGet->getVocalistName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('vocalist.name', PicoPredicate::generateLikeContians($inputGet->getVocalistName())); + $predicate1->like('vocalist.name', PicoPredicate::generateLikeContains($inputGet->getVocalistName())); $spesification->addAnd($predicate1); } @@ -2473,7 +2473,7 @@ class SpecificationUtil if($inputGet->getComposerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('composer.name', PicoPredicate::generateLikeContians($inputGet->getComposerName())); + $predicate1->like('composer.name', PicoPredicate::generateLikeContains($inputGet->getComposerName())); $spesification->addAnd($predicate1); } @@ -2487,7 +2487,7 @@ class SpecificationUtil if($inputGet->getArrangerName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('arranger.name', PicoPredicate::generateLikeContians($inputGet->getArrangerName())); + $predicate1->like('arranger.name', PicoPredicate::generateLikeContains($inputGet->getArrangerName())); $spesification->addAnd($predicate1); } @@ -2559,7 +2559,7 @@ class SpecificationUtil if($inputGet->getTitle() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate1->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesification->addAnd($predicate1); } @@ -2614,21 +2614,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2685,7 +2685,7 @@ class SpecificationUtil if($inputGet->getLyric() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('lyric', PicoPredicate::generateLikeContians($inputGet->getLyric())); + $predicate1->like('lyric', PicoPredicate::generateLikeContains($inputGet->getLyric())); $spesification->addAnd($predicate1); } @@ -2725,21 +2725,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate1); $predicate2 = new PicoPredicate(); - $predicate2->like('title', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate2->like('title', PicoPredicate::generateLikeContains($inputGet->getName())); $spesificationTitle->addOr($predicate2); } if($inputGet->getTitle() != "") { $predicate3 = new PicoPredicate(); - $predicate3->like('name', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate3->like('name', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate3); $predicate4 = new PicoPredicate(); - $predicate4->like('title', PicoPredicate::generateLikeContians($inputGet->getTitle())); + $predicate4->like('title', PicoPredicate::generateLikeContains($inputGet->getTitle())); $spesificationTitle->addOr($predicate4); } @@ -2776,7 +2776,7 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -2802,7 +2802,7 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -2828,7 +2828,7 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } @@ -2854,21 +2854,21 @@ class SpecificationUtil if($inputGet->getName() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('name', PicoPredicate::generateLikeContians($inputGet->getName())); + $predicate1->like('name', PicoPredicate::generateLikeContains($inputGet->getName())); $spesification->addAnd($predicate1); } if($inputGet->getUsername() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('username', PicoPredicate::generateLikeContians($inputGet->getUsername())); + $predicate1->like('username', PicoPredicate::generateLikeContains($inputGet->getUsername())); $spesification->addAnd($predicate1); } if($inputGet->getEmail() != "") { $predicate1 = new PicoPredicate(); - $predicate1->like('email', PicoPredicate::generateLikeContians($inputGet->getEmail())); + $predicate1->like('email', PicoPredicate::generateLikeContains($inputGet->getEmail())); $spesification->addAnd($predicate1); }