当前位置: 首页>>代码示例>>PHP>>正文


PHP Meeting::addToName方法代码示例

本文整理汇总了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;
 }
开发者ID:mathteacher,项目名称:12sml,代码行数:33,代码来源:meetingclass.php


注:本文中的Meeting::addToName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。