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


PHP DateTimeHelper::getDateObject方法代码示例

本文整理汇总了PHP中DateTimeHelper::getDateObject方法的典型用法代码示例。如果您正苦于以下问题:PHP DateTimeHelper::getDateObject方法的具体用法?PHP DateTimeHelper::getDateObject怎么用?PHP DateTimeHelper::getDateObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DateTimeHelper的用法示例。


在下文中一共展示了DateTimeHelper::getDateObject方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getSingleEditForm


//.........这里部分代码省略.........
                              </ul>
                            </div>
                          </li>
                        </ol>
                        <script type="text/javascript" language="javascript">//<![CDATA[
                          FileTags' . $objFile->id . '_list = new FacebookList(\'FileTags' . $objFile->id . '\', \'FileTags' . $objFile->id . '_autocompleter\',{ newValues: true, regexSearch: true });
                          ' . $this->getAllTagsForAutocompleter('FileTags' . $objFile->id) . '
                          //]]>
                        </script>                           
                      </div>                         
                      <div class="clear"></div>';
         if ($blnIsImage == false) {
             $strOutput .= '
                      <div class="mediafield">
                        <div class="mediatop">
                          ' . $this->core->translate->_('Add_medias') . ': <img src="/zoolu-statics/images/icons/icon_addmedia.png" width="16" height="16" onclick="myMedia.getAddMediaOverlay(\'divMediaContainer_documentpic\')" />
                        </div>
                        <div id="divMediaContainer_documentpic" class="media">
                        </div>
                        <input type="hidden" name="documentpic" id="documentpic" value="' . ($objFile->idFiles != null && $objFile->idFiles > 0 ? '[' . $objFile->idFiles . ']' : '') . '" /> 
                      </div>';
             //FIXME: use syntax for applying one file
         }
         if ($blnIsImage == true) {
             $strOutput .= '
                    </div>
                    <div class="clear"></div>
                    <div class="spacer1"></div>';
         }
         $strMediaUrl = '';
         if ($blnIsImage == true) {
             $strOutput .= '
                    <div class="mediasizes">
                      <select id="mediaSizes" onchange="$(\'singleMediaUrl\').value = $F(\'singleFileBasePath\') + this.value + $F(\'singleFileName\')">';
             foreach ($arrImagesSizes as $arrImageSize) {
                 if (isset($arrImageSize['display']) && isset($arrImageSize['display']['single_edit'])) {
                     if ($strMediaUrl == '') {
                         $strMediaUrl = $strBasePath . $arrImageSize['folder'] . '/' . $objFile->filename . '?v=' . $objFile->version;
                     }
                     $strOutput .= '
                        <option value="' . $arrImageSize['folder'] . '/">' . $arrImageSize['folder'] . '</option>';
                 }
             }
             $strOutput .= '
                      </select>
                    </div>';
         } else {
             $strMediaUrl = 'http://' . $_SERVER['HTTP_HOST'] . $strDownloadLink;
         }
         $strOutput .= '
                    <div class="medialink">
                      <input type="text" id="singleMediaUrl" readonly="readonly" value="' . $strMediaUrl . '" onclick="this.select()"/><br/>
                      <div id="d_clip_container" style="float:right; margin:0 10px 0 0; position:relative;">
                        <div id="d_clip_button">[copy to clipboard]</div>
                      </div>
                      <div class="clear"></div> 
                      <input type="hidden" id="singleFileName" value="' . $objFile->filename . '?v=' . $objFile->version . '"/>
                      <input type="hidden" id="singleFileBasePath" value="' . $strBasePath . '"/>
                    </div>                       
                    <div class="clear"></div>
                    
                    <div class="spacer1"></div>
                    <div class="mediasingleupload">';
         if ($blnAuthorizedToUpdate == true) {
             $strOutput .= '
                      <label for="txtFileName" class="gray666 bold">' . $this->core->translate->_('New_version') . '</label><br/>
                      <div>
                        <input type="text" id="txtFileName" disabled="true" />
                        <span id="spanButtonPlaceholder"></span>
                      </div>
                      <div id="fsUploadProgress"></div>';
         }
         if ($blnIsImage == false) {
             $strOutput .= '
                    </div>';
         }
         if ($objFileVersions != null && $objFileVersions instanceof Zend_Db_Table_Rowset_Abstract) {
             $objCreated = DateTimeHelper::getDateObject();
             $objArchived = DateTimeHelper::getDateObject();
             $strOutput .= '
                      <div class="spacer1"></div>
                      <label for="txtFileName" class="gray666 bold">' . $this->core->translate->_('Version_list') . '</label><br/>
                      <div class="mediaversions">';
             foreach ($objFileVersions as $objFileVersion) {
                 if ($objFileVersion->created != null && $objFileVersion->archived != null) {
                     $objCreated->set($objFileVersion->created);
                     $objArchived->set($objFileVersion->archived);
                     $strOutput .= '
                        <div class="version"><a href="/zoolu-website/media/download/' . $objFileVersion->idFiles . '/' . urlencode(str_replace('.', '-', $objFileVersion->title)) . '?v=' . $objFileVersion->version . '" target="_blank">' . $this->core->translate->_('Version') . ' ' . $objFileVersion->version . '</a> (' . $objCreated->get(Zend_Date::DATETIME_MEDIUM) . ' - ' . $objArchived->get(Zend_Date::DATETIME_MEDIUM) . ')</div>';
                 }
             }
             $strOutput .= '
                      </div>';
         }
         $strOutput .= '
                    </div>
                  </div>';
     }
     return $strOutput;
 }
开发者ID:BGCX261,项目名称:zoolu-svn-to-git,代码行数:101,代码来源:ViewHelper.php


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