getLastName() public method

public getLastName ( ) : string
return string
示例#1
0
   $combo = "";
   foreach ($languages as $language) {
       $lang = new Language($language);
       if ($defaultLanguage == 0) {
           $defaultLanguage = $language;
       }
       $combo .= '<option value="' . $language . '">' . $lang->getName() . "</option>";
   }
   $biography = "";
   if ($id > 0) {
       $bioObj = new AuthorBiography($id, $defaultLanguage);
       //$biography = $author->getBiography($defaultLanguage);
       //$lang_first_name = $biography[0]["first_name"];
       //$lang_last_name = $biography[0]["last_name"];
       $lang_first_name = $bioObj->getFirstName();
       $lang_last_name = $bioObj->getLastName();
       if (strlen($lang_first_name) == 0) {
           $lang_first_name = $first_name;
       }
       if (strlen($lang_last_name) == 0) {
           $lang_last_name = $last_name;
       }
       //$biography = $biography[0]["biography"];
       $biography = $bioObj->getBiography();
   }
   echo $combo;
   ?>
   </select>
 </li>
 <li>
   <label class="smaller"><?php putGS('Translate from'); ?>:</label>