本文整理汇总了PHP中Meeting::addToName方法的典型用法代码示例。如果您正苦于以下问题:PHP Meeting::addToName方法的具体用法?PHP Meeting::addToName怎么用?PHP Meeting::addToName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Meeting
的用法示例。
在下文中一共展示了Meeting::addToName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: toTableRow
public function toTableRow($day)
{
// sets the character to print out for Open or Closed
$open_char = "C";
if ($this->open) {
$open_char = 'O';
}
// adds the meeting codes to the end of the meeting name
$newname = Meeting::addToName($this->name);
// combines address pieces together to create a whole address
$wholeaddress = $this->address . ", " . $this->city . " WA " . $this->zipcode;
// adds the last update date at the end of the meeting notes
if ($this->notes == "") {
$newnotes = $this->notes . "Info Last Updated: " . $this->lupdate;
} else {
$newnotes = $this->notes . "; Info Last Updated: " . $this->lupdate;
}
// creates a String of the meeting info as an HTML table row and returns it
$htmlstring = "<tr><td class=\"oc\">{$day}</td>";
// day, input as parameter
$htmlstring = $htmlstring . "<td data-value=\"{$this->stime_num}\">{$this->stime}</td>";
// String start time with numeric data-value for sorting
$htmlstring = $htmlstring . "<td class=\"oc\">{$open_char}</td><td>{$newname}</td>";
// O or C
// street name and number but link to apple maps of whole address
// used apple maps, as if it's a non apple device it automatically goes to google maps
$htmlstring = $htmlstring . "<td><a target=\"_blank\" href=\"http://maps.apple.com/?q={$wholeaddress}\">{$this->address}</a>";
$htmlstring = $htmlstring . "</td><td>{$this->city}</td>";
// city
$htmlstring = $htmlstring . "<td>{$newnotes}</td></tr>";
// notes
return $htmlstring;
}