[RSS Feed/News] Set a getter?

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Yesterday I have learned how to manipulate $post->message.

Today I have learned how to add a getter to $post;

and now i found out:

to use the getter as a var like the table_fields with set and not only get, we use the cache.

add getter to structure:

$structure->getters['pager'] = ['getter' => 'getPager', 'cache' => true];

**getter => getPager is not neccessary, but i let it to remember that i can have other names also.


public function getPager()
{
return $this->_getterCache['pager']...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom