Esempio n. 1
0
 public function testGetAllApplicationsAndKeys()
 {
     $apps = Api_Bo_App::getAllApplicationsAndKeys();
     $this->assertGreaterThan(0, count($apps));
     foreach ($apps as $app) {
         $this->assertArrayHasKey('keys', $app);
     }
 }
Esempio n. 2
0
<?php

require_once 'ringside/m3/AbstractRest.php';
require_once 'ringside/api/bo/App.php';
$apps = Api_Bo_App::getAllApplicationsAndKeys();
$ajaxUrl = $this->url_for($controller = "apps", $action = null, $only_path = false);
?>
<h1>Applications</h1>
<table style=" background-color: #EEF2F3; border:1px solid black; width:95%; margin: auto;" cellpadding="0" cellspacing="0" >
  <tr>
    <td style="width:10px;overflow: hidden; " valign="top">
      <div id="navcontainerVert">
        <ul id="navlistVert" style="padding:0px;margin:0px;">
              
 
                <?php 
for ($i = 0; $i < count($apps); $i++) {
    ?>
  
                  <li>
                      <a href="#app<?php 
    print $apps[$i]['id'];
    ?>
" id="app<?php 
    print $apps[$i]['id'];
    ?>
" appname="<?php 
    print $apps[$i]['name'];
    ?>
" api_key="<?php 
    print $apps[$i]['keys'][0]['api_key'];