Skip to content

Instantly share code, notes, and snippets.

#include<stdio.h>
Array
(
[order] => Array
(
[CustomerName] =>
[ContactFirstName] => Noah
[ContactLastName] => Lively
[ContactTitle] => Lively
[ContactPhone] => 9898989898
[ContactMobile] => 9898989898
Array
(
[group_1] => Array
(
[0] => stdClass Object
(
[id] => 439
[guid] => f2c93d48-98ad-49a8-815a-a0050087fc9e
[jurisdiction_id] => d273a29a-60ea-e011-9f2a-485b397450b7
[name] => Retrieval- WEB (Articles of Formation- Plain)
Array
(
[0] => stdClass Object
(
[id] => 390
[guid] => f2c93d48-98ad-49a8-815a-a0050087fc9e
[jurisdiction_id] => 0074a29a-60ea-e011-9f2a-485b397450b7
[name] => Retrieval- WEB (Articles of Formation- Plain)
[fee] => 50.00000
[item_id] => f2c93d48-98ad-49a8-815a-a0050087fc9e
@kumarmanish
kumarmanish / gist:2490019
Created April 25, 2012 14:18
doc_retrieval.php
<?php
$state = (isset($form_state['values']['choose_a_state'])) ? $form_state['values']['choose_a_state'] : $form['choose_a_state']['#default_value'];
$service_guid = $this->services[0]->guid;
$service_items = sundoc_get_service_items_by_service_id($service_guid);
$jurisdiction_prices = sundoc_get_fees_by_service_id_and_state($service_guid, $state);
$jurisdiction_prices_new = sundoc_get_service_items_by_service_id_and_state($service_guid, $state);
$groups = array();
foreach($service_items as $item) {
@kumarmanish
kumarmanish / gist:2471051
Created April 23, 2012 13:55
doc_retrieval.php
<?php
$service_guid = $this->services[0]->guid;
$service_items = sundoc_get_service_items_by_service_id($service_guid);
$jurisdiction_prices = sundoc_get_fees_by_service_id_and_state('36a0e6b1-afd8-4fe6-88ee-a007010bb5af', 'AL');
$groups = array();
foreach($service_items as $item) {
$matches = array();
preg_match('/^(.+)-/', $item->description, $matches);
@kumarmanish
kumarmanish / gist:2172220
Created March 23, 2012 16:07
screenoutput
realtsoft@rtswebtst:/var/www/rts_enterprise/sites/default/modules/drealty$ drush cc
Enter a number to choose which cache to clear.
[0] : Cancel
[1] : all
[2] : theme registry
[3] : menu
[4] : css+js
[5] : block
[6] : module list
[7] : theme list
@kumarmanish
kumarmanish / reman.views.inc
Created January 6, 2012 06:13
Expose the table to view
<?php
/**
* Implementation of hook_views_data().
*/
function reman_views_data() {
$data = array();
// Table names
$data['realtsoft_captured_leads'] ['table']['group'] = t('RealTSoft Captured Leads');