本文整理汇总了PHP中Entry::getName方法的典型用法代码示例。如果您正苦于以下问题:PHP Entry::getName方法的具体用法?PHP Entry::getName怎么用?PHP Entry::getName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entry
的用法示例。
在下文中一共展示了Entry::getName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: createPayload
/**
* Create the view payload
* @param \mdref\Entry $ref
* @param \mdref\Generator\Renderer $view
* @return \stdClass
*/
private function createPayload(Entry $ref = null)
{
$pld = new \stdClass();
$pld->quick = [$this->reference, "formatString"];
$pld->file = [$this->reference, "formatFile"];
$pld->refs = $this->reference;
$pld->view = $this->renderer;
if ($ref) {
$pld->entry = $ref;
$pld->ref = $ref->getName();
}
return $pld;
}
示例2: isStatic
/**
* Checks if an entry is *not* assigned to a prototype.
* @member Entry
* @returns {Boolean} Returns true if not assigned to a prototype, else false.
*/
public function isStatic()
{
$public = !$this->isPrivate();
$result = $public && !!preg_match('/\\*\\s*@static\\b/', $this->entry);
// set in cases where it isn't explicitly stated
if ($public && !$result) {
if ($parent = array_pop(preg_split('/[#.]/', $this->getMembers(0)))) {
foreach (Entry::getEntries($this->source) as $entry) {
$entry = new Entry($entry, $this->source);
if ($entry->getName() == $parent) {
$result = !$entry->isCtor();
break;
}
}
} else {
$result = true;
}
}
return $result;
}
示例3: EntryDAO
if (isset($_REQUEST["id_entry"]) && $_REQUEST["id_entry"]) {
$entryDAO = new EntryDAO($db);
$entry = $entryDAO->get($_REQUEST["id_entry"]);
} else {
$entry = new Entry();
}
include "../lib/view/entryEditView.php";
?>
<!--
<div class='editForm'>
<form>
<div class="edit_line">
<label for="entry_name" class="label_edit">Name </label>
<br />
<input name="entry_name" value="<?php
echo $entry->getName();
?>
" />
</div>
<div class="edit_line">
<label for="entry_url" class="label_edit">Url </label>
<br />
<input name="entry_url" value="<?php
echo $entry->getUrl();
?>
" />
</div>
<div class="edit_line">
<label for="entry_details" class="label_edit">Details </label>
<br />
<textarea id="edit" name="entry_details" class="edit_textarea"><?php