usage of $this is not available in php 5.3