Difference between $btInterfaceWidth and getBlockTypeInterfaceWidth() function??

Permalink
Within a block I am fiddling with there is the following:

protected $btInterfaceWidth = "350";
   protected $btInterfaceHeight = "125";
   .
   .
   .
   public function getBlockTypeInterfaceWidth() {
      return 20;
   }
   public function getBlockTypeInterfaceHeight() {
      return 20;
   }


I keep playing with the values and just can't make heads or tails yet of which one does what when.

I know that changes inside the overidding functions shown above must be refreshed for a block through the Dashboard before they take affect but with respect to setting the width and height of block dialog boxes...which one of the above does what??

Which one takes precedence over other.

Just changing the protected variable values does not appear to do a thing without including the override functions.

Anybody?

Carlos

 
12345j replied on at Permalink Best Answer Reply
12345j
use the functions- the $btVar stuff is really only there for backwards compatibility.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.