Skip to content

Instantly share code, notes, and snippets.

<?php
$user = DbQueryExec::getInstance()->fetchQuery("select * from users where id=:id limit 1", ['id'=>666 ] );
namespace Example\Module;
use Example\Contract\ExampleModel //типа интерфейс
class ModuleExample
{
private $model;
public function __construct(ExampleModel $model)
{
@MetaDone
MetaDone / glpi inc html.class.php
Created December 16, 2015 10:14
fix glpi description ticket tooltip
line #3670
$out .= "<div id='".$param['contentid']."' class='invisible'>$content</div>";
replace to
if ($param['link'] == "") {
$out .="<p>" . $content . "</p>";
return $out;
} else {
$out .= "<div id='" . $param['contentid'] . "' class='invisible'>$content</div>";