id | name | help | exclusive | sort | lft | rght | parent_id | created | modified | deleted |
---|---|---|---|---|---|---|---|---|---|---|
1 | Products | (null) | 0 | 0 | 1 | 16 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | 0 |
2 | Hardware | (null) | 0 | 0 | 2 | 15 | 1 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$array = array( | |
'Response' => array( | |
'OneKey' => 'foo', | |
'TwoKey' => array('bar', 'baz') | |
) | |
); | |
echo $xml->header(); | |
echo $xml->serialize($array, array('format' => 'tags')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RestComponent extends Object { | |
/** | |
* Determines whether or not to use pre-built views. | |
* | |
* @var boolean | |
* @access public | |
*/ | |
var $autoRender = true; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @todo Support HasAndBelongsToMany relationships. | |
*/ | |
class SoftDeletableBehavior extends ModelBehavior { | |
var $field = 'deleted'; | |
/** | |
* Setup method for behavior instatiation - merge model settings. | |
* | |
* @param object $Model Model instance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
App::import('Vendor', 'DOMPDF', array('file' => 'dompdf' . DS . 'dompdf_config.inc.php')); | |
class CustomPDF extends DOMPDF { | |
public function Header() { | |
# Header code goes here | |
} | |
public function Footer() { | |
# Footer code goes here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="pagination-pages"> | |
<?php | |
echo $paginator->prev('prev page', array('tag' => 'li')); | |
echo $paginator->numbers(array('separator' => false, 'tag' => 'li', 'first' => 3, 'last' => 3)); | |
echo $paginator->next('next page', array('tag' => 'li')); | |
?> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class AppHelper extends Helper { | |
var $maintainPrefix = false; | |
function url($url = null, $full = false, $maintain = false) { | |
if (is_array($url) && !$this->maintainPrefix && !$maintain) { | |
$routing = Configure::read('Routing'); | |
if (!empty($routing['prefixes'])) { | |
$prefixes = array_diff_key(array_flip($routing['prefixes']), $url); | |
$url = array_merge($url, array_fill_keys(array_keys($prefixes), false)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT "Group".abbr, COUNT("PaymentException".id) AS exception_count, AVG("PaymentException".appeals) AS appeals_average, | |
SUM("PaymentException".appeal_amount) AS appealed_total, AVG("PaymentException".appeal_amount) AS appealed_average, | |
AVG(EXTRACT(epoch FROM "PaymentException".created)) AS age_average | |
FROM exceptions "PaymentException" | |
INNER JOIN procedures "Procedure" ON "Procedure".id = "PaymentException".procedure_id | |
INNER JOIN claims "Claim" ON "Claim".id = "Procedure".claim_id | |
INNER JOIN groups "Group" ON "Group".id = "Claim".group_id | |
WHERE "PaymentException".appeal_amount > 0 | |
GROUP BY "Group".abbr | |
ORDER BY "Group".abbr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PdfHelper extends AppHelper { | |
var $helpers = array('Html'); | |
function css($path) { | |
if (is_array($path)) { | |
foreach ($path as $i) { | |
echo $this->css($i); | |
} | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var_dump($result['EstimateSet']); | |
["import_total"]=> | |
string(7) "2261.24" | |
["domestic_total"]=> | |
string(7) "2859.56" | |
var_dump($totals); | |
array(4) { |
OlderNewer