Exemple #1
0
    }
    ?>
                        <?php 
    require_once __DIR__ . '/../../../../Yongo/Resources/views/issue/_sectionDetailsDates.php';
    ?>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <?php 
    require_once __DIR__ . '/../../../../Yongo/Resources/views/issue/_mainInformation.php';
    ?>

                        <table width="100%">
                            <?php 
    if (Util::deepInArray('description', $screenData)) {
        ?>
                                <tr>
                                    <td id="sectDescription" class="sectionDetail" colspan="2"><span class="sectionDetailTitle headerPageText">Description</span></td>
                                </tr>
                                <tr>
                                    <td>
                                        <div id="contentDescription"><?php 
        echo str_replace("\n", '<br />', htmlentities($issue['description']));
        ?>
</div>
                                    </td>
                                </tr>
                            <?php 
    }
    ?>
Exemple #2
0
 public static function deepInArray($value, $array)
 {
     foreach ($array as $item) {
         if (!is_array($item)) {
             if ($item == $value) {
                 return true;
             } else {
                 continue;
             }
         }
         if (in_array($value, $item)) {
             return true;
         } else {
             if (Util::deepInArray($value, $item)) {
                 return true;
             }
         }
     }
     return false;
 }