Esempio n. 1
0
 public static function INSERT()
 {
     $row = parent::INSERT();
     $label = Label::INSERT();
     $label->setText('Hyperlink');
     $row->setLabel($label);
     return $row;
 }
Esempio n. 2
0
 public static function INSERT()
 {
     $row = parent::INSERT();
     $row->setBackground(Image::INSERT('resources/default-image.png'));
     $row->setTitle(Label::INSERT());
     $row->setText(SimpleText::INSERT());
     $row->setEnabled(1);
     return $row;
 }
Esempio n. 3
0
 public static function INSERT()
 {
     $row = parent::INSERT();
     $row->setAuthor(Session::getUser());
     $row->setTitle(Label::INSERT());
     $row->setContent(SimpleText::INSERT());
     $row->setCreation(time());
     $row->setPublication(time() + 365 * 24 * 3600 * 3);
     return $row;
 }
Esempio n. 4
0
File: index.php Progetto: fulldump/8
<?php

$id = '';
eval('$id=' . var_export($data['id'], true) . ';');
$edit = !in_array('noedit', $flags);
$label = Label::getByName($id);
if (null === $label) {
    $label = Label::INSERT();
    $label->setName($id);
    $label->setText($data['text']);
}
$text = $label->getText();
if (array_key_exists('edit', $_GET) && Session::isLoggedIn() && $edit) {
    ?>
<span component="Label" edit_id="<?php 
    echo $id;
    ?>
" style="display:inherit;"><?php 
    echo $text;
    ?>
</span>
<?php 
} else {
    echo $text;
}