Returns messages by fieldname
@param string $fiedlname
@return string
183974
public function getMessage($fieldname) {

		if(false === is_string($fieldname)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($fieldname)), E_USER_ERROR);
		}

		$instance 	= $this -> getMessageInstance();
		$short 		= $instance :: getErrors();
		$full 		= $instance :: getErrors(true);

		if(true === isset($short[$fieldname])) {
			return $short[$fieldname];
		}

		if(true === isset($full[$fieldname])) {
			return $full[$fieldname];
		}
	}
1182112
public function getMessages($name = null)
    {
        !$name && $name = $this->name;
        $this->negative && $this->addError('negative');

        $this->loadTranslationMessages();

        $messages = array();
        foreach ($this->errors as $optionName => $message) {
            preg_match_all('/\%(.+?)\%/', $message, $matches);
            $parameters = array();
            foreach ($matches[1] as $match) {
                if ('name' == $match) {
                    $parameters['%name%'] = $this->t($name);
                } else {
                    if (!property_exists($this, $match)) {
                        throw new \UnexpectedValueException(sprintf('Unknown parameter "%%%s%%" in message "%s"', $match, $message));
                    }
                    $parameters['%' . $match . '%'] = is_array($this->$match) ?
                        implode(', ', $this->$match) : $this->$match;
                }
            }
            $messages[$optionName] = $this->t($message, $parameters);
        }
        return $messages;
    }
898538
public function getMessage($key) {
        if (!$this->_loaded) $this->load();
        if (!isset($this->messages[$key])) return "[$key]";
        return $this->messages[$key];
    }
178674
public function getFieldNames()
    {
        $fieldNames = $this->_aFieldNames;

        if (!$this->isAdmin() && $this->_blUseLazyLoading) {
            $fieldNames = $this->_getNonCachedFieldNames(true);
        }

        return array_keys($fieldNames);
    }
366481
private function getMessage($filename, $key)
    {
        $messageset = $this->getParameters('messageset');

        // If we have a matching key in messageset it wins
        if (array_get($messageset, $key))
        {
            return array_get($messageset, $key);
        }

        $fileKey = ($this->languageKey) ? $this->languageKey . '.' . $key : $key;

        // We have a couple of options where messages could be retrieved by default,
        // try: Model.php and model.php, as well as Model_Model.php and Model/Model.php
        $messages = [
            $filename . $fileKey,
            Str::lower($filename) . $fileKey,
            str_replace('_', '/', $filename) . $fileKey,
            Str::lower(str_replace('_', '/', $filename)) . $fileKey
        ];

        // Cycle through messages trying to find one that is valid
        foreach ($messages as $message)
        {
            if (Lang::has($message))
            {
                return Lang::get($message);
            }
        }

        return "";
    }
564907
public function name($fieldName)
    {
        //====================================================================//
        // Safety Checks ==> Verify a new Field Exists
        if (empty($this->new)) {
            Splash::log()->err("ErrFieldsNoNew");
        } else {
            //====================================================================//
            // Update New Field structure
            $this->new->name = $fieldName;
            if (empty($this->new->desc)) {
                $this->description($fieldName);
            }
        }

        return $this;
    }
792971
def getfieldnamesendswith(idfobject, endswith):
    """"""
    objls = idfobject.objls
    tmp = [name for name in objls if name.endswith(endswith)]
    if tmp == []:
        pass
    return [name for name in objls if name.endswith(endswith)]
514670
public function prepareFieldName($fieldName)
    {
        list($fieldName) = $this->prepareQueryElement($fieldName, null, null, false);

        return $fieldName;
    }
368633
private function getMessage(string $message): string
    {
        $hasTranslation = $this->messages !== null && array_key_exists($message, $this->messages) === false;

        return $hasTranslation === true ? $this->messages[$message] : $message;
    }
555034
private function getEventExchangeName($messageFqcn)
    {
        $messageFqcn = trim($messageFqcn, '\\');
        $pos = strrpos($messageFqcn, '\\');
        if ($pos !== false) {
            $messageFqcn = substr_replace($messageFqcn, ':', $pos, 1);
        }
        return str_replace('\\', '.', $messageFqcn);
    }
1122635
public function getClientFinalMessage()
    {
        $final_msg = 'c=biws,r=' . $this->_nonce;

        /* Salted password. */
        $s_pass = strval(new Horde_Crypt_Blowfish_Pbkdf2(
            $this->_pass,
            strlen(hash($this->_hash, '', true)),
            array(
                'algo' => $this->_hash,
                'i_count' => $this->_iterations,
                'salt' => $this->_salt
            )
        ));

        /* Client key. */
        $c_key = hash_hmac($this->_hash, 'Client Key', $s_pass, true);

        /* Stored key. */
        $s_key = hash($this->_hash, $c_key, true);

        /* Client signature. */
        $auth_msg = $this->_authmsg . ',' . $final_msg;
        $c_sig = hash_hmac($this->_hash, $auth_msg, $s_key, true);

        /* Proof. */
        $proof = $c_key ^ $c_sig;

        /* Server signature. */
        $this->_serversig = hash_hmac(
            $this->_hash,
            $auth_msg,
            hash_hmac($this->_hash, 'Server Key', $s_pass, true),
            true
        );

        /* c=biws: channel-binding ("biws" = base64('n,,')),
         * p=<proof>: base64 encoded ClientProof,
         * r=<nonce>: Nonce as returned from the server. */
        return $final_msg . ',p=' . base64_encode($proof);
    }
822880
protected function _getExtendedInfo($fieldName = null, $data = null) {
		$result = $this->getEmptyText();
		if (empty($fieldName)) {
			return $result;
		}
		list($modelName, ) = pluginSplit($fieldName);
		if (empty($modelName)) {
			return $result;
		}
		$elementName = 'infoEmployeeExtend' . $modelName;
		if ($this->_View->elementExists('CakeLdap.' . $elementName)) {
			$result = $this->_View->element('CakeLdap.' . $elementName, [
				'data' => $data]);
		}

		return $result;
	}
53029
public function getMessages()
    {
        $messages = $this->fromPrevious;

        foreach ($this->forNow as $key => $values) {
            if (!isset($messages[$key])) {
                $messages[$key] = [];
            }

            foreach ($values as $value) {
                array_push($messages[$key], $value);
            }
        }

        return $messages;
    }
850783
private function getOldFieldName($modelName, $fieldName)
    {
        $modelRenamedFields = ArrayHelper::getValue(
            $this->renamedFields,
            $modelName,
            []
        );
        if ($modelRenamedFields) {
            $fieldName = ArrayHelper::getValue(
                $modelRenamedFields,
                $fieldName,
                $fieldName
            );
        }

        return $fieldName;
    }
458725
public function receiveAnEmailFromName($senderName)
    {
        $message = $this->fetchLastMessage();
        $this->assertEquals($senderName, $message->from_name);
    }
1316545
protected function getFieldName($fieldName)
	{
		if ($fieldName)
		{
			return $fieldName;
		}
		else
		{
			self::$count = self::$count + 1;

			return self::$generated_fieldname . self::$count;
		}
	}
931846
public static function getFromName($messageName)
    {
        if (false === $message = MessageQuery::create()->filterByName($messageName)->findOne()) {
            throw new \Exception("Failed to load message $messageName.");
        }

        return $message;
    }