[Rt-devel] Queue_Overlay::ValidateName in 3.2.2 vs 3.4.4

Jesse Vincent jesse at bestpractical.com
Thu Dec 1 01:27:30 EST 2005




> > > already been created before doing so. Like this:
> > > 
> > > 	if (RT::Queue->ValidateName("ws-$id"))
> > 
> > Nope. you can't do that.   
> 
> Hmmm... but it works in 3.2.2. And there appear to be lots of Class-based
> method calls throughout the code. Why is this bad? I don't understand.

Because the validate methods are object methods, not class methods. It's
sometimes important to be able to look at an object when validating one
of its attributes.

> 
> Jens
> 

-- 


More information about the Rt-devel mailing list