PhpThumb::isValidImplementation PHP Method

isValidImplementation() public method

If 'all' is passed, true is only returned if ALL implementations are available. You can also pass 'n/a', which always returns true
public isValidImplementation ( string $implementation ) : boolean
$implementation string
return boolean
    public function isValidImplementation($implementation)
    {
        if ($implementation == 'n/a') {
            return true;
        }
        if ($implementation == 'all') {
            foreach ($this->_implementations as $imp => $value) {
                if ($value == false) {
                    return false;
                }
            }
            return true;
        }
        if (array_key_exists($implementation, $this->_implementations)) {
            return $this->_implementations[$implementation];
        }
        return false;
    }