PHP User::FullName Examples

PHP User::FullName - 9 examples found. These are the top rated real world PHP examples of User::FullName extracted from open source projects. You can rate examples to help us improve the quality of examples.
 protected function PopulateTemplate()
 {
     $currentInstance = $this->reservationSeries->CurrentInstance();
     $this->Set('UserName', $this->reservationOwner->FullName());
     $this->Set('StartDate', $currentInstance->StartDate()->ToTimezone($this->timezone));
     $this->Set('EndDate', $currentInstance->EndDate()->ToTimezone($this->timezone));
     $this->Set('ResourceName', $this->reservationSeries->Resource()->GetName());
     $this->Set('Title', $this->reservationSeries->Title());
     $this->Set('Description', $this->reservationSeries->Description());
     $repeatDates = array();
     if ($this->reservationSeries->IsRecurring()) {
         foreach ($this->reservationSeries->Instances() as $repeated) {
             $repeatDates[] = $repeated->StartDate()->ToTimezone($this->timezone);
         }
     }
     $this->Set('RepeatDates', $repeatDates);
     $this->Set('RequiresApproval', $this->reservationSeries->RequiresApproval());
     $this->Set('ReservationUrl', sprintf("%s?%s=%s", Pages::RESERVATION, QueryStringKeys::REFERENCE_NUMBER, $currentInstance->ReferenceNumber()));
     $this->Set('ICalUrl', sprintf("export/%s?%s=%s", Pages::CALENDAR_EXPORT, QueryStringKeys::REFERENCE_NUMBER, $currentInstance->ReferenceNumber()));
     $resourceNames = array();
     foreach ($this->reservationSeries->AllResources() as $resource) {
         $resourceNames[] = $resource->GetName();
     }
     $this->Set('ResourceNames', $resourceNames);
     $this->Set('Accessories', $this->reservationSeries->Accessories());
     $attributes = $this->attributeRepository->GetByCategory(CustomAttributeCategory::RESERVATION);
     $attributeValues = array();
     foreach ($attributes as $attribute) {
         $attributeValues[] = new Attribute($attribute, $this->reservationSeries->GetAttributeValue($attribute->Id()));
     }
     $this->Set('Attributes', $attributeValues);
 }
Example #2
0
 /**
  * @return string
  */
 function Body()
 {
     $this->Set('To', Configuration::Instance()->GetKey(ConfigKeys::ADMIN_EMAIL_NAME) ? Configuration::Instance()->GetKey(ConfigKeys::ADMIN_EMAIL_NAME) : 'Administrator');
     $this->Set('FullName', $this->user->FullName());
     $this->Set('EmailAddress', $this->user->EmailAddress());
     $this->Set('Phone', $this->user->GetAttribute('Phone'));
     $this->Set('Organization', $this->user->GetAttribute('Organization'));
     $this->Set('Position', $this->user->GetAttribute('Position'));
     return $this->FetchTemplate('AccountCreation.tpl');
 }
Example #3
0
 /**
  * @return string
  */
 function Body()
 {
     $this->Set('To', Configuration::Instance()->GetKey(ConfigKeys::ADMIN_EMAIL_NAME) ? Configuration::Instance()->GetKey(ConfigKeys::ADMIN_EMAIL_NAME) : 'Administrator');
     $this->Set('FullName', $this->user->FullName());
     $this->Set('EmailAddress', $this->user->EmailAddress());
     $this->Set('Phone', $this->user->GetAttribute('Phone'));
     $this->Set('Organization', $this->user->GetAttribute('Organization'));
     $this->Set('Position', $this->user->GetAttribute('Position'));
     if ($this->userSession != null && $this->userSession->UserId != $this->user->Id()) {
         $this->Set('CreatedBy', new FullName($this->userSession->FirstName, $this->userSession->LastName));
     }
     return $this->FetchTemplate('AccountCreation.tpl');
 }
 private function PopulateTemplate()
 {
     $this->Set('UserName', $this->reservationOwner->FullName());
     $currentInstance = $this->reservationSeries->CurrentInstance();
     $this->Set('StartDate', $currentInstance->StartDate()->ToTimezone($this->timezone));
     $this->Set('EndDate', $currentInstance->EndDate()->ToTimezone($this->timezone));
     $this->Set('ResourceName', $this->resource->GetName());
     $this->Set('Title', $this->reservationSeries->Title());
     $this->Set('Description', $this->reservationSeries->Description());
     $repeatDates = array();
     foreach ($this->reservationSeries->Instances() as $repeated) {
         $repeatDates[] = $repeated->StartDate()->ToTimezone($this->timezone);
     }
     $this->Set('RequiresApproval', $this->reservationSeries->RequiresApproval());
     $this->Set('RepeatDates', $repeatDates);
     $this->Set('ReservationUrl', Pages::RESERVATION . "?" . QueryStringKeys::REFERENCE_NUMBER . '=' . $currentInstance->ReferenceNumber());
     $resourceNames = array();
     foreach ($this->reservationSeries->AllResources() as $resource) {
         $resourceNames[] = $resource->GetName();
     }
     $this->Set('ResourceNames', $resourceNames);
     $this->Set('Accessories', $this->reservationSeries->Accessories());
     $attributes = $this->attributeRepository->GetByCategory(CustomAttributeCategory::RESERVATION);
     $attributeValues = array();
     foreach ($attributes as $attribute) {
         $attributeValues[] = new Attribute($attribute, $this->reservationSeries->GetAttributeValue($attribute->Id()));
     }
     $this->Set('Attributes', $attributeValues);
     $bookedBy = $this->reservationSeries->BookedBy();
     if ($bookedBy != null && $bookedBy->UserId != $this->reservationOwner->Id()) {
         $this->Set('CreatedBy', new FullName($bookedBy->FirstName, $bookedBy->LastName));
     }
 }
 public function To()
 {
     $address = $this->participant->EmailAddress();
     $name = $this->participant->FullName();
     return array(new EmailAddress($address, $name));
 }
 /**
  * @return array|EmailAddress[]|EmailAddress
  */
 function To()
 {
     return new EmailAddress($this->user->EmailAddress(), $this->user->FullName());
 }
Example #7
0
 public function To()
 {
     $address = $this->invitee->EmailAddress();
     $name = $this->invitee->FullName();
     return array(new EmailAddress($address, $name));
 }
<?php 
require_once 'Connection.php';
require_once 'User.php';
$c = new Connection();
$u = new User();
$u->UserName($_POST['userName']);
$res = $u->VerifyUserName();
if (!$res) {
    // se o resultado for falso, significa que usuário e senha podem ser inseridos (pois não existem ainda)
    if (isset($_POST['fullName']) && $_POST['fullName'] != "" && isset($_POST['password']) && $_POST['password'] != "") {
        $u->FullName($_POST['fullName']);
        $u->Password($_POST['password']);
        $u->InsertUser();
        echo '<html>';
        echo '<script language="JavaScript">';
        echo 'alert("Usuário inserido!");';
        echo 'window.location="Index.php"';
        echo '</script>';
        echo '</html>';
    } else {
        echo '<html>';
        echo '<script language="JavaScript">';
        echo 'alert("Existem campos não preenchidos!");';
        echo 'window.location="NewUser.php"';
        echo '</script>';
        echo '</html>';
    }
} else {
    echo '<html>';
    echo '<script language="JavaScript">';
    echo 'alert("Usuário já existe!");';
Example #9
0
 /**
  * @return string
  */
 function Body()
 {
     $this->Set('UserFullName', $this->deletedUser->FullName());
     $this->Set('AdminFullName', $this->to->FullName());
     return $this->FetchTemplate('AccountDeleted.tpl');
 }