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 | |
function pdsearch_menu() { | |
$items['profile_search'] = array( | |
'title' => 'Profile Search', | |
'page callback' => 'profile_search', | |
'access callback' => TRUE, | |
'type' => MENU_CALLBACK | |
); | |
return $items; |
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 | |
/** | |
* Implementation of hook_menu(). | |
*/ | |
function pdresources_menu() { | |
$items['resources'] = array( | |
'title' => 'Resources', | |
'page callback' => 'display_resources', | |
'access callback' => 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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $cols = 2; | |
my $items = 7; | |
my $num_cols = 0; | |
my $num_items = 0; | |
for (1..3) { |
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 | |
/** | |
* Implementation of hook_install(). | |
*/ | |
function provider_install() { | |
drupal_install_schema('provider'); | |
} | |
/** |
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 | |
#require 'BGCheckManager.class.php'; | |
require 'Task.class.php'; | |
#$task_id = BGCheckManager::request(1, array('Felony')); | |
#echo BGCheckManager::getStatus($task_id); | |
$task = Task::create("Task", "new", array('first_name' => 'Delon', 'last_name' => 'Newman')); |
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 | |
require 'connection.inc.php'; | |
class Task { | |
protected $id; | |
protected $type; | |
protected $status; | |
protected $parameters; | |
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
use Domestic::Provider; | |
$p = Domestic::Provider::find(1); | |
# Error: method not found... etc. |
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
package Domestic::Provider; | |
use Moose; | |
use lib $ENV{'TASK_MANAGER_PATH'} .'/lib'; | |
extends 'Domestic::Member'; | |
has 'education' => ( is => 'rw', isa => 'Str' ); | |
has 'work_status' => ( is => 'rw', isa => 'Str' ); | |
has 'position' => ( is => 'rw', isa => 'Str' ); | |
has 'schedule' => ( is => 'rw', isa => 'Str' ); | |
has 'licence' => ( is => 'rw', isa => 'Str' ); |
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
package Domestic::Employer; | |
use Moose; | |
extends 'Domestic::Member'; | |
has 'interests' => ( is => 'rw', isa => 'Str' ); | |
has 'subscription' => ( is => 'rw', isa => 'Str' ); | |
1; |
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
package Domestic::Member; | |
use Moose; | |
use Moose::Util::TypeConstraints; | |
with 'MooseX::Param'; | |
use DateTime; | |
use Domestic; | |
use Domestic::DB; | |