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


PHP pb_backupbuddy_destinations::get_destinations_list方法代码示例

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


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

示例1: foreach

    $url = pb_backupbuddy::ajax_url('remoteClient') . '&destination_id=' . $destination_id;
    echo '<iframe id="pb_backupbuddy_iframe-dest-' . $destination_id . '" src="' . $url . '" width="100%" height="3000" frameBorder="0">Error #4584594579. Browser not compatible with iframes.</iframe>';
    echo '</div>';
    pb_backupbuddy::$ui->end_tab();
}
pb_backupbuddy::$ui->start_tab('add_new');
$destination_type = pb_backupbuddy::_GET('add');
require_once pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php';
?>
	<div class="bb_destinations" style="display: block; margin: 0;">
		<div class="bb_destinations-group bb_destinations-new" style="display: block;">
			<h3>What kind of destination do you want to add?</h3>
			<ul>
				<?php 
$i = 0;
foreach (pb_backupbuddy_destinations::get_destinations_list($showUnavailable = true) as $destination_name => $destination) {
    $i++;
    if (true === $destination['compatible']) {
        echo '<li class="bb_destination-item bb_destination-' . $destination_name . ' bb_destination-new-item">';
        /*
        if ( 's32' == $destination_name ) {
        	echo '<div class="bb-ribbon"><span>New</span></div>';
        }
        */
        if ('stash2' == $destination_name) {
            echo '<div class="bb-ribbon"><span>New</span></div>';
        }
        echo '<a href="javascript:void(0)" rel="' . $destination_name . '">';
        echo $destination['name'];
        echo '</a></li>';
    } else {
开发者ID:AgilData,项目名称:WordPress-Skeleton,代码行数:31,代码来源:destinationTabs.php

示例2: pb_bb_add_box

function pb_bb_add_box($mode, $picker_url, $hideBack = false)
{
    ?>
	<div class="bb_destinations-group bb_destinations-new">
		<h3>What kind of destination do you want to add?</h3>
		<ul>
			<?php 
    $i = 0;
    foreach (pb_backupbuddy_destinations::get_destinations_list() as $destination_name => $destination) {
        if ($mode == 'migration') {
            if ($destination_name != 'local' && $destination_name != 'ftp' && $destination_name != 'sftp') {
                // if not local or ftp when in migration mode then skip.
                continue;
            }
        }
        // Filter only showing certain destination type.
        if ('' != pb_backupbuddy::_GET('filter')) {
            if ($destination_name != pb_backupbuddy::_GET('filter')) {
                continue;
                // Move along to next destination.
            }
        }
        $i++;
        echo '<li class="bb_destination-item bb_destination-' . $destination_name . ' bb_destination-new-item"><a href="' . $picker_url . '&add=' . $destination_name . '&callback_data=' . pb_backupbuddy::_GET('callback_data') . '&sending=' . pb_backupbuddy::_GET('sending') . '" rel="' . $destination_name . '">' . $destination['name'] . '</a></li>';
        if ($i >= 5) {
            echo '<span class="bb_destination-break"></span>';
            $i = 0;
        }
    }
    if (false === $hideBack) {
        ?>
				<br><br>
				<a href="javascript:void(0)" class="btn btn-small btn-white btn-with-icon btn-back btn-back-add"  onClick="jQuery('.bb_destinations-new').hide(); jQuery('.bb_destinations-existing').show();"><span class="btn-icon"></span>Back to existing destinations</a>
			<?php 
    }
    ?>
		</ul>
	</div>
	<?php 
}
开发者ID:emjayoh,项目名称:bhag,代码行数:40,代码来源:_destination_picker.php

示例3: backups

		<!--
		<div class="step limit">
			<h4><span class="number">3.</span> How many backups should be ket locally before deleting the oldest?</h4>
			<label>Number of backups to keep</label>
			<input type="email" id="pb_backupbuddy_quickstart_archive_limit name="archive_limit" size="7" style="width: 180px;" value="12">
			<img src="<?php 
echo pb_backupbuddy::plugin_url();
?>
/images/check.png" class="check" id="pb_backupbuddy_quickstart_archive_limit_check">
		</div>
	-->
	
	
	<?php 
require_once pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php';
$destinations = pb_backupbuddy_destinations::get_destinations_list();
?>
		
		<div class="step destination">
			<h4><span class="number">3.</span> Where do you want to send your backups (scheduled or manually sent)?</h4>
			<div class="backupbuddy-quickstart-indent">
				<div id="dest" class="box-options">
					
					<input type="hidden" id="pb_backupbuddy_quickstart_destinationid" name="destination_id" value="">
					<select id="pb_backupbuddy_quickstart_destination"  name="destination" class="change">
						<option value="">Local Only (no remote destination)</option>
						<?php 
$stash2support = false;
foreach ($destinations as $destinationSlug => $destination) {
    $checkHTML = '';
    if ('stash' == $destinationSlug) {
开发者ID:Coop920,项目名称:Sterling-Wellness,代码行数:31,代码来源:_quicksetup.php

示例4: foreach

					<?php 
foreach (pb_backupbuddy::$options['remote_destinations'] as $destination_id => $destination) {
    echo '<li class="bb_destination-item bb_destination-' . $destination['type'] . '"><a href="javascript:void(0)" title="' . $destination['title'] . '" rel="' . $destination_id . '">' . $destination['title'] . '</a></li>';
}
?>
					<br><br>
					<a href="javascript:void(0)" class="btn btn-small btn-white btn-cancel-send" onClick="jQuery('.bb_destinations').hide();">Nevermind</a>
					<a href="javascript:void(0)" class="btn btn-small btn-addnew" onClick="jQuery('.bb_destinations-existing').hide(); jQuery('.bb_destinations-new').show();">Add New Destination +</a>
				</ul>
			</div>
			<div class="bb_destinations-group bb_destinations-new">
				<h3>What kind of destination do you want to add?</h3>
				<ul>
					<?php 
$i = 0;
foreach (pb_backupbuddy_destinations::get_destinations_list() as $destination_name => $destination) {
    $i++;
    echo '<li class="bb_destination-item bb_destination-' . $destination_name . ' bb_destination-new-item"><a href="javascript:void(0)" rel="' . $destination_name . '">' . $destination['name'] . '</a></li>';
    if ($i >= 5) {
        echo '<span class="bb_destination-break"></span>';
        $i = 0;
    }
}
?>
					<br><br>
					<a href="javascript:void(0)" class="btn btn-small btn-white btn-with-icon btn-back btn-back-add"  onClick="jQuery('.bb_destinations-new').hide(); jQuery('.bb_destinations-existing').show();"><span class="btn-icon"></span>Back to existing destinations</a>
				</ul>
			</div>
		</div>
	</div>
</div>
开发者ID:arobbins,项目名称:iab,代码行数:31,代码来源:_backup-perform.php

示例5: run

 public function run($arguments)
 {
     $arguments = Ithemes_Sync_Functions::merge_defaults($arguments, $this->default_arguments);
     require_once pb_backupbuddy::plugin_path() . '/destinations/bootstrap.php';
     return array('api' => '0', 'status' => 'ok', 'message' => 'Supported destinations retrieved.', 'destinations' => pb_backupbuddy_destinations::get_destinations_list());
 }
开发者ID:elephantcode,项目名称:elephantcode,代码行数:6,代码来源:backupbuddy-list-destinationTypes.php


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