Ejemplo n.º 1
0
 * Date: 2/4/16
 * Time: 7:01 PM
 */
use Backend\Database\Tables\Promises;
use Backend\Helpers\TableBuilder;
$table = new Promises();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($data[$i]);
        $current = $data[$i];
        $builder->buildCell($decoded->getPromise())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("promise", $current->getPromise())->addActionAttrs("id", $current->getId());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}
?>
                </tbody>
            </table>
        </div>
        <!-- end: page -->
    </div>



            </div> <!-- container -->
Ejemplo n.º 2
0
 * Date: 2/19/16
 * Time: 6:45 PM
 */
use Backend\Database\Tables\SpecialDays;
use Backend\Helpers\TableBuilder;
$table = new SpecialDays();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($data[$i]);
        $current = $data[$i];
        $builder->buildCell($decoded->getDate())->buildCell($decoded->getMessage())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("date", $current->getDate())->addActionAttrs("id", $current->getId())->addActionAttrs("message", $current->getMessage());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}
?>
                </tbody>
            </table>
        </div>
        <!-- end: page -->
    </div>



            </div> <!-- container -->
Ejemplo n.º 3
0
 * Date: 2/3/16
 * Time: 7:06 PM
 */
use Backend\Database\Tables\Poems;
use Backend\Helpers\TableBuilder;
$table = new Poems();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $current = $data[$i];
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($current);
        $builder->buildCell($decoded->getName())->buildCell($decoded->getPoem())->buildCell($decoded->getDate())->buildCell($decoded->getAuthor())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("name", $current->getName())->addActionAttrs("id", $current->getId())->addActionAttrs("poem", $current->getPoem())->addActionAttrs("author", $current->getAuthor());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}
?>
                </tbody>
            </table>
        </div>
        <!-- end: page -->
    </div>



            </div> <!-- container -->
<?php

/**
 * Created by PhpStorm.
 * User: evolutionarycoder
 * Date: 2/4/16
 * Time: 5:02 PM
 */
use Backend\Database\Tables\Reassurance;
use Backend\Helpers\TableBuilder;
$table = new Reassurance();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($data[$i]);
        $current = $data[$i];
        $builder->buildCell($decoded->getReassure())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("reassure", $current->getReassure())->addActionAttrs("id", $current->getId());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}
Ejemplo n.º 5
0
 * Date: 2/4/16
 * Time: 7:53 PM
 */
use Backend\Database\Tables\Memory;
use Backend\Helpers\TableBuilder;
$table = new Memory();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($data[$i]);
        $current = $data[$i];
        $builder->buildCell($decoded->getMemory())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("memory", $current->getMemory())->addActionAttrs("id", $current->getId());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}
?>
                </tbody>
            </table>
        </div>
        <!-- end: page -->
    </div>



            </div> <!-- container -->
Ejemplo n.º 6
0
 * Date: 2/19/16
 * Time: 1:55 PM
 */
use Backend\Database\Tables\Quotes;
use Backend\Helpers\TableBuilder;
$table = new Quotes();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($data[$i]);
        $current = $data[$i];
        $builder->buildCell($decoded->getQuote())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("quote", $current->getQuote())->addActionAttrs("id", $current->getId());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}
?>
                </tbody>
            </table>
        </div>
        <!-- end: page -->
    </div>



            </div> <!-- container -->
Ejemplo n.º 7
0
<?php

/**
 * Created by PhpStorm.
 * User: evolutionarycoder
 * Date: 2/4/16
 * Time: 1:01 PM
 */
use Backend\Database\Tables\ILove;
use Backend\Helpers\TableBuilder;
$table = new ILove();
$data = $table->readAll();
$builder = new TableBuilder();
if ($data !== false) {
    for ($i = 0; $i < count($data); $i++) {
        $decoded = clone $data[$i];
        $table->stripAndDecode($decoded);
        $table->strip($data[$i]);
        $current = $data[$i];
        $builder->buildCell($decoded->getLove())->buildCell($decoded->getSynced());
        $builder->addActionAttrs("ilove", $current->getLove())->addActionAttrs("id", $current->getId());
        $builder->addRowAttr("id", $current->getId());
        echo $builder->buildRow();
    }
}