diff --git a/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php b/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php index a51671c58..f64bc6ea7 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php +++ b/addons/default/visiosoft/advs-module/src/Adv/AdvModel.php @@ -391,7 +391,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface return $this->product_options_value; } - public function status() + public function getStatus() { return $this->status; } diff --git a/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php b/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php index f3ae4a2be..c5e4a5940 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php +++ b/addons/default/visiosoft/advs-module/src/Adv/Contract/AdvInterface.php @@ -84,5 +84,5 @@ interface AdvInterface extends EntryInterface public function getProductOptionsValues(); - public function status(); + public function getStatus(); } diff --git a/addons/default/visiosoft/advs-module/src/Adv/Table/AdvTableButtons.php b/addons/default/visiosoft/advs-module/src/Adv/Table/AdvTableButtons.php index 1a8634916..266de8c98 100644 --- a/addons/default/visiosoft/advs-module/src/Adv/Table/AdvTableButtons.php +++ b/addons/default/visiosoft/advs-module/src/Adv/Table/AdvTableButtons.php @@ -10,19 +10,19 @@ class AdvTableButtons $builder->setButtons([ 'status' => [ 'text' => function (EntryInterface $entry) { - $text_type = ($entry->status() == 'approved') ? 'decline' : 'approve'; + $text_type = ($entry->getStatus() == 'approved') ? 'decline' : 'approve'; return "" . trans('visiosoft.module.advs::button.' . $text_type) . ""; }, 'icon' => function (EntryInterface $entry) { - return ($entry->status() == 'approved') ? "fa fa-eye-slash" : "fa fa-eye"; + return ($entry->getStatus() == 'approved') ? "fa fa-eye-slash" : "fa fa-eye"; }, 'href' => function (EntryInterface $entry) { - $action_type = ($entry->status() == 'approved') ? 'declined' : 'approved'; + $action_type = ($entry->getStatus() == 'approved') ? 'declined' : 'approved'; return "/admin/class/actions/{entry.id}/" . $action_type; }, 'type' => function (EntryInterface $entry) { - return ($entry->status() == 'approved') ? "danger" : "success"; + return ($entry->getStatus() == 'approved') ? "danger" : "success"; }, ],