Skip to content

Commit

Permalink
Testing for options.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiwidjaja committed Oct 10, 2018
1 parent 4f37d8b commit 01a9d4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Models/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ public function getVariantClasses() {
return implode(" ", $classes);
}

public function HasOption($option) {
if($options = $this->Options) {
return strstr($options, $option) !== false;
}
}

public function getMenuTitle() {
if ($this->dbObject("MenuTitle"))
return $this->dbObject("MenuTitle");
Expand Down

0 comments on commit 01a9d4a

Please sign in to comment.