/** * Store an operation to image's queue of operations * * @param Asido_Image &$image * @param string $operation * @param array $params * @return boolean * * @access private * @static */ function _operation(&$image, $operation, $params) { $d =& asido::_driver(); // no driver ? // if (!is_a($d, 'asido_driver')) { trigger_error('No Asido driver loaded', E_USER_WARNING); return false; } // not an image ? // if (!is_a($image, 'Asido_Image')) { trigger_error(sprintf('The image you are attempting to ' . ' \'%s\' ("%s") is not a ' . ' valid Asido image object', $operation, get_class($image)), E_USER_ERROR); return false; } // queue operation // $p = array_merge(array('tmp' => null), $params); $image->operation(array(&$d, $operation), $p); return true; }