示例#1
0
 public function beforeSet()
 {
     $subscribe = $this->modx->getObject('modUser', array('username' => $this->getProperty('username')))->get('id');
     $this->setProperty('subscriberid', $subscribe);
     $this->unsetProperty('username');
     $this->unsetProperty('ctx');
     $this->unsetProperty('society_action');
     return parent::beforeSet();
 }