root/trunk/lib/model/SnippetUser.php

Revision 2, 0.6 kB (checked in by fabien, 6 years ago)

initial import

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1 <?php
2
3 require_once 'model/om/BaseSnippetUser.php';
4
5
6 /**
7  * Skeleton subclass for representing a row from the 'sn_user' table.
8  *
9  *
10  *
11  * You should add additional methods to this class to meet the
12  * application requirements.  This class will only be generated as
13  * long as it does not already exist in the output directory.
14  *
15  * @package model
16  */   
17 class SnippetUser extends BaseSnippetUser
18 {
19   public function __toString()
20   {
21     if($this->getFirstName() || $this->getLastName())
22     {
23       return $this->getFirstName().' '.$this->getLastName();
24     }
25     else
26     {
27       return $this->getLogin();
28     }
29   }
30 }
31
Note: See TracBrowser for help on using the browser.