This plugin simplifies the use of HTML5 custom data attributes in your jQuery code. It adds a function named .dataAttr()
to the jQuery namespace, which acts as a wrapper for jQuery.attr()
.
…
<?php | |
class Accounts_logic_hook_class | |
{ | |
function Accounts_logic_hook_method(&$bean, $event, $arguments) | |
{ | |
echo "Hit the Accounts before save logic hook"; | |
exit; | |
} | |
} |
#!/usr/bin/php | |
<?php | |
/* | |
* Copyright 2013 | |
* Jeff Bickart | |
* @bickart | |
* jeff @ neposystems.com | |
*/ |
({ | |
/* Author: Angel Magaña -- cheleguanaco@cheleguanaco.com | |
* File: ./custom/clients/base/views/subpanel-list/subpanel-list.js | |
* | |
* Extended Subpanel List controller to suppress "Edit" functionality | |
* on "Calls" subpanel throughout Sugar (Sugar 7.2+) | |
* | |
*/ | |
extendsFrom: 'SubpanelListView', |
<?php | |
require_once 'include/SugarLogger/SugarLogger.php'; | |
class custom_Company_Helper_Logger extends SugarLogger | |
{ | |
protected $logfile = 'company_logger'; | |
protected $ext = '.log'; | |
protected $dateFormat = '%c'; | |
protected $logSize = '10MB'; |
for t in $(mysql -NBA -D <database_name> -e 'show tables') | |
do | |
echo "DUMPING TABLE: $t" | |
mysqldump <database_name> $t | gzip > <some_dir>/$t.sql.gz | |
done |
<?php | |
class Opportunities { | |
public function __construct() { | |
# Instantiate this so we can read all of our resources into RAM ONCE | |
$this->generator = new OpportunityGenerator(); | |
} | |
public function populateForAccount(&$account) { | |
# Need our demo array |
# Make a local copy | |
service mysql stop | |
cp -ra /var/lib/mysql mysqldata | |
service mysql start | |
# Make a local dump | |
mysqldump --routines --events --flush-privileges --all-databases > all-databases.sql | |
# drop everything except the mysql table | |
mysql -e "SELECT DISTINCT CONCAT ('DROP DATABASE ',TABLE_SCHEMA,' ;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA <> 'mysql' AND TABLE_SCHEMA <> 'information_schema';" | tail -n+2 > drop.sql |
This plugin simplifies the use of HTML5 custom data attributes in your jQuery code. It adds a function named .dataAttr()
to the jQuery namespace, which acts as a wrapper for jQuery.attr()
.
…
// Convert FORM POST into JSON with JavaScript jQuery - JSFiddle | |
// | |
// http://jsfiddle.net/jasondavis/qj35st8d/ | |
// | |
// | |
// | |
$.fn.serializeObject = function() | |
{ |