Skip to content

Instantly share code, notes, and snippets.

@agborkowski
Created July 25, 2013 18:08
Show Gist options
  • Save agborkowski/6082269 to your computer and use it in GitHub Desktop.
Save agborkowski/6082269 to your computer and use it in GitHub Desktop.
protected $_schema = [
'id' => ['type' => 'id'],
'theard_uid' => ['type' => 'string'],
'message_uid' => ['type' => 'string'],
'user_profile_id' => ['type' => 'integer'],
'to_user_profile_id' => ['type' => 'integer'],
'message' => ['type' => 'string'],
'box' => ['type' => 'integer'],
'status' => ['type' => 'integer'],
'type' => ['type' => 'string'],
'created' => ['type' => 'string'],
'modified' => ['type' => 'string']
];
/*
$expected = [
'user_profile_id' => $options['im']['from'],
'to_user_profile_id' => $options['im']['to'],
'message' => $message
];
$results = [
'user_profile_id' => $current->user_profile_id,
'to_user_profile_id' => $current->to_user_profile_id,
'message' => $current->message
];
var_dump($results);
array(3) {
["user_profile_id"]=>
string(1) "1"
["to_user_profile_id"]=>
string(1) "2"
["message"]=>
string(31) "testSendPrivateMessage_From1to2"
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment