You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
704 B
PHP
31 lines
704 B
PHP
<?php
|
|
|
|
namespace Eater\Glim\Model;
|
|
|
|
use Eater\Glim\Model\Base\User as BaseUser;
|
|
|
|
/**
|
|
* Skeleton subclass for representing a row from the 'User' table.
|
|
*
|
|
*
|
|
*
|
|
* You should add additional methods to this class to meet the
|
|
* application requirements. This class will only be generated as
|
|
* long as it does not already exist in the output directory.
|
|
*
|
|
*/
|
|
class User extends BaseUser
|
|
{
|
|
public function getActiveCertificates()
|
|
{
|
|
return CertificateQuery::create()
|
|
->filterByUser($this)
|
|
->filterByRevoked(false)
|
|
->find();
|
|
}
|
|
|
|
public function getPlainEmailAddress() {
|
|
return $this->getEmailAddressRelatedByEmail()->getAddress();
|
|
}
|
|
}
|