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
if (isset($attachment['transformers'][$class])) { | |
return new $attachment['transformers'][$class]($options); | |
} |
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 id, | |
(SELECT GROUP_CONCAT(`COLUMN_NAME` SEPARATOR ', ') | |
FROM `INFORMATION_SCHEMA`.`COLUMNS` | |
WHERE `TABLE_SCHEMA`='heavysalvage' | |
AND `TABLE_NAME`='auctions' | |
AND COLUMN_NAME LIKE '%rear_%') | |
from auctions order by cab DESC; |
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 | |
public function live_table_reduce($columns, $listing) | |
{ | |
foreach($listing->toArray() as $key=>$value){ | |
if(is_array($value) && !empty($value['label'])){ | |
$value = $value['label']; | |
} | |
$columns[$key]['data'][] = $value; | |
$columns[$key]['value'] = Inflector::humanize($key); | |
} |
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
exec("echo '".CAKE_CORE_INCLUDE_PATH."/cake/console/cake subscriber email -auction_id ".$auction_id." -existing ".$existing." -app ".APP."' | at now"); |
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 | |
$fields = [ | |
'title' => 'Your listing needs a title', | |
'insurer_id' => 'Please specify an Insurer' | |
]; | |
$rules = []; | |
foreach($fields as $field => $message){ | |
$rules['location_' . $field] = [ |
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 | |
public function testViewAuthenticated() | |
{ | |
$this->session([ | |
'Auth' => [ | |
'User' => [ | |
'permissions' => [ | |
[ | |
'label' => 'ViewInvoices' |
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 | |
public function testImplementedEvents() | |
{ | |
$eventsToTest = [ | |
'Table.Listings.bid_approved' => 'logUserApprovedBid', | |
'Table.Listings.bids_rejected' => 'logUserRejectBids', | |
'Table.Listings.bids_reset' => 'logUserResetBids', | |
'Table.Listings.publish' => 'logUserPublishListing', |
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
{% extends "refeed/account/form.html" %} | |
{% block form_header %} | |
{% endblock form_header %} | |
{% block form_submit_controls %} | |
<input class="btn" type="submit" value="Save Password"/> | |
{% endblock form_submit_controls %} |
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
<table className="table"> | |
{this._getHeadings()} | |
<tbody ref="tbody"> | |
{this.props.data.map((row, i) => { | |
return ( | |
<tr key={'row_' + i}> | |
{this.props.selected_columns.map((column) => { | |
return ( | |
<td className="no-wrap" key={row['id'] + '+' + column}> | |
<Field {...row} |
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
######################### | |
## Sass Lint File | |
######################### | |
# sass-lint -v | |
# Linter Options | |
options: | |
# Don't merge default rules | |
merge-default-rules: false | |
# Set the formatter to 'stylish' | |
formatter: compact |