Obtain admin email.

@return bool|string
349497
protected function email()
    {
        if (($email = env('ADMIN_EMAIL', null)) != null) {
            return $email;
        }

        if (($email = git_user_email()) != null) {
            return $email;
        }

        return "admin@example.com";
    }
1097701
protected function getAdministratorRole()
    {
        $role = Admin::model('Role')->firstOrNew([
            'name' => 'admin',
        ]);

        if (!$role->exists) {
            $role->fill([
                'display_name' => 'Administrator',
            ])->save();
        }

        return $role;
    }
600971
public function getAdminIndex()
    {
        // Grab all the users
        $users = Sentinel::createModel()->where('status', '=', '1')->Get();

        $possibleStatus = $this->status;
        $pending = false;

        // Show the page
        return View('admin.users.list', compact('users', 'possibleStatus', 'pending'));
    }
593184
protected function buildEmail()
    {
        $email = $this->getEmailObject();

        $email->setSubject($this->getSubject());
        $email->setRecipient($this->getRecipient());
        $email->setFrom($this->getSender());
        $email->setBody($this->getBody());

        return $email;
    }
995850
public function getPostCreateAdmin()
    {
        $this->di->get("auth")->isAdmin(true);

        $title      = "Admin - Skapa en ny användare";
        $card       = "Användarinformation";
        $view       = $this->di->get("view");
        $pageRender = $this->di->get("pageRender");
        $form       = new CreateAdminForm($this->di);

        $form->check();

        $data = [
            "form" => $form->getHTML(),
            "title" => $title,
            "card" => $card
        ];

        $view->add("admin/create", $data);

        $pageRender->renderPage(["title" => $title]);
    }
544683
protected function buildEmailString()
    {
        $email = $this->prefix.$this->email;

        if (isset($this->subject) || isset($this->body)) {
            $data = [
                'subject' => $this->subject,
                'body'    => $this->body,
            ];
            $email .= '?'.http_build_query($data);
        }

        return $email;
    }
631745
public function getTemporaryUser($email)
    {
        $email = trim(strtolower($email));
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            return false;
        }

        $userClass = $this->auth->getUserClass();
        $user = $userClass::where('email', $email)->first();

        if (!$user) {
            return false;
        }

        if (!$user->isTemporary()) {
            return false;
        }

        return $user;
    }
70676
public function getAllEmailAddresses() {
        $saveCurrentFolder = $this->folder;
        $emails = array();
        foreach($this->getFolders() as $folder) {
            $this->selectFolder($folder);
            foreach($this->getMessages(false) as $message) {
                $emails[] = $message['from'];
                $emails = array_merge($emails, $message['to']);
                if (isset($message['cc'])) {
                    $emails = array_merge($emails, $message['cc']);
                }
            }
        }
        $this->selectFolder($saveCurrentFolder);
        return array_unique($emails);
    }
484395
public function getAdminOwner()
    {
        $repo = $this->dm->getRepository($this->organizationClass);

        return $repo->findOneBy([
            'adminOwner' => true
        ]);
    }
258524
def get_admin_email_link(application):
    
    url = '%s/applications/%d/' % (settings.ADMIN_BASE_URL, application.pk)
    is_secret = False
    return url, is_secret
1006105
public function getIsAdmin()
	{
		if(!\Yii::$app->user->isGuest)
		{
			if(\Yii::$app->user->identity->role < 2)
			{
				return true;
			}
		}
		return false;
	}
200066
public function get_content_plain() {
		return wc_get_template_html( $this->template_plain, [
			'order'         => $this->object,
			'email_heading' => $this->get_heading(),
			'sent_to_admin' => false,
			'plain_text'    => true,
			'email'			=> $this,
		] );
	}
246743
public function getNameAndEmail() {
        $display = '';
        if ( isset($this->displayname) && strlen($this->displayname) > 0 ) {
            $display = $this->displayname;
        }
        if ( isset($this->email) && strlen($this->email) > 0 ) {
            if ( strlen($display) > 0 ) {
                $display .= ' ('.$this->email.')';
            } else {
                $display = $this->email;
            }
        }
        $display = trim($display);
        if ( strlen($display) < 1 ) return false;
        return $display;
    }
449315
public function getUserByEMail(string $email)
    {
        $retval = null;

        if (strlen($email) > 0) {
            $nb_user = CNabuUser::findByEMail($this, $email);
            if ($nb_user instanceof CNabuUser && $nb_user->validateCustomer($this)) {
                $nb_user->setCustomer($this);
                $retval = $nb_user;
            }
        }

        return $retval;
    }
926643
public function getUser() {

        if( $this->user === false ) {

            $this->user = $this->userService->getByEmail( $this->email );
        }

        return $this->user;
    }
903194
protected function default()
    {
        $default = ! empty($emails = $this->getPossibleEmails()) ? $emails[0]: '';
        return fp_env($this->envVar()) ? fp_env($this->envVar()) : $default;
    }
776767
public function getEmailSubject() : string
    {
        $result = sprintf(
            '%s: %s',
            Inflector::singularize($this->table->getAlias()),
            $this->getDisplayValue()
        );

        if (! $this->entity->isNew()) {
            $result = sprintf('(Updated) %s', $result);
        }

        return $result;
    }