public function allowCancel($order)
    {
        // do not allow order to be canceled, if a shipping exists for the given
        // order that already is shipped
        if ($this->shippingManager->countByOrderId($order->getId(), array(ShippingStatus::STATUS_SHIPPED)) > 0) {
            return false;
        }

        return true;
    }
public function allowCancel($order)
    {
        // do not allow order to be canceled, if a shipping exists for the given
        // order that already is shipped
        if ($this->shippingManager->countByOrderId($order->getId(), array(ShippingStatus::STATUS_SHIPPED)) > 0) {
            return false;
        }

        return true;
    }
public function allowCancel ( $ order ) { // do not allow order to be canceled, if a shipping exists for the given // order that already is shipped if ( $ this -> shippingManager -> countByOrderId ( $ order -> getId ( ) , array ( ShippingStatus :: STATUS_SHIPPED ) ) > 0 ) { return false ; } return true ; }
returns the identifying name

@param $order
@return bool
returns the identifying name