Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1.     function is_available() {
  2.         if ($this->_is_available === null) {
  3.             $this->_is_available = true;
  4.  
  5.             $el = $this->element();
  6.             if ($el['ACTIVE'] == 'N')
  7.                 $this->_is_available = false;
  8.             if ($this->quantity() == 0)
  9.                 $this->_is_available = false;
  10.         }
  11.  
  12.         return $this->_is_available;
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement