Skip to content

Commit

Permalink
Moving examples, fixing dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
spekary committed Jul 6, 2017
1 parent 118f101 commit 9077301
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 26 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">

<?php $this->renderBegin(); ?>
Expand Down Expand Up @@ -44,4 +44,4 @@


<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
File renamed without changes
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">

<?php $this->renderBegin(); ?>

Expand Down Expand Up @@ -40,4 +40,4 @@
</div>

<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">

<?php $this->renderBegin(); ?>
Expand Down Expand Up @@ -40,4 +40,4 @@
</div>

<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">

<?php $this->renderBegin(); ?>
Expand Down Expand Up @@ -40,4 +40,4 @@
</div>

<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">
<link href="<?= QCUBED_BOOTSTRAP_ASSETS_URL ?>/css/qbootstrap.css" rel="stylesheet">

Expand Down Expand Up @@ -48,4 +48,4 @@
</div>

<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">
<link href="<?= QCUBED_BOOTSTRAP_ASSETS_URL ?>/css/qbootstrap.css" rel="stylesheet">

Expand Down Expand Up @@ -56,4 +56,4 @@
</div>

<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">
<link href="<?= QCUBED_BOOTSTRAP_ASSETS_URL ?>/css/qbootstrap.css" rel="stylesheet">

Expand Down Expand Up @@ -41,4 +41,4 @@


<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
File renamed without changes.
4 changes: 2 additions & 2 deletions assets/php/examples/modal.tpl.php → examples/modal.tpl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">
<link href="<?= QCUBED_BOOTSTRAP_ASSETS_URL ?>/css/qbootstrap.css" rel="stylesheet">

Expand Down Expand Up @@ -30,4 +30,4 @@
?>

<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
File renamed without changes.
4 changes: 2 additions & 2 deletions assets/php/examples/nav.tpl.php → examples/nav.tpl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php require(QCUBED_EXAMPLES_DIR . '/includes/header.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/header.inc.php'); ?>
<link href="<?= QCUBED_BOOTSTRAP_CSS ?>" rel="stylesheet">
<link href="<?= QCUBED_BOOTSTRAP_ASSETS_URL ?>/css/qbootstrap.css" rel="stylesheet">

Expand Down Expand Up @@ -30,4 +30,4 @@


<?php $this->renderEnd(); ?>
<?php require(QCUBED_EXAMPLES_DIR . '/includes/footer.inc.php'); ?>
<?php require(QCUBED_CONFIG_DIR . '/footer.inc.php'); ?>
File renamed without changes
File renamed without changes.
File renamed without changes
16 changes: 9 additions & 7 deletions src/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace QCubed\Bootstrap;

use QCubed\Action\ActionBase;
use QCubed\Action\ActionParams;
use QCubed\Control\ControlBase;
use QCubed\Control\FormBase;
use QCubed\Control\HList;
Expand Down Expand Up @@ -162,16 +163,17 @@ protected function makeJqWidget() {
/**
* An override to make sure the public value gets decrypted before being sent to the action function.
*
* @param ActionBase $objAction
* @param $mixParameter
* @return mixed
* @param ActionParams $params
* @return void
*/
protected function processActionParameters(ActionBase $objAction, $mixParameter) {
$params = parent::processActionParameters($objAction, $mixParameter);
protected function processActionParameters(ActionParams $params) {
parent::processActionParameters($params);
if ($this->blnEncryptValues) {
$params['param']['value'] = $this->decryptValue($mixParameter['value']); // Decrypt the value if needed.
$actionParam = $params->ActionParameter;

$actionParam['value'] = $this->decryptValue($actionParam['value']); // Decrypt the value if needed.
$params->ActionParameter = $actionParam;
}
return $params;
}

/**
Expand Down

0 comments on commit 9077301

Please sign in to comment.