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 | |
$user1 = (new \Api\Site\Models\Attendees)->setState('filter.id',$id1)->getItem(); | |
$user2 = (new \Api\Site\Models\Attendees)->setState('filter.id',$id2)->getItem(); | |
//set user one | |
$connections = $user1->connections; | |
$connections[$id2] = array('name' => $user2->fullName(), 'time' => date("Y-m-d H:i:s")); | |
$user1->set('connections', $connections); | |
$user1->save(); | |
//set user two | |
$connections = $user2->connections; |
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
public function launch($experience, $event, $tag) | |
{ | |
$f3 = \Base::instance(); | |
$this->setTheme($tag); | |
$array = explode('\\', $experience->controller); | |
$array=array_filter($array); |
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
{ | |
"_id" : ObjectId("536fe0d413ec02702c8b45d6"), | |
"name" : "Checkin", | |
"device_id" : "manualdevice", | |
"type" : "Checkin", | |
"controller" : "\\Experiences\\Checkin\\Site\\Controllers\\Controller", | |
"action" : "launch", | |
"submit" : "Add", | |
"event" : { | |
"id" : ObjectId("5367c5b623195a89b90041a7"), |
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 | |
namespace Dash\Helpers; | |
//Convert Activities to Nice humaniness output | |
Class Activity { |
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 | |
namespace Dash\Site\Models\Event; | |
class Tags extends Eventbase | |
{ | |
/** | |
* Default Document Structure | |
* @var unknown | |
*/ |
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 | |
Class URLGenerator { | |
var $base = 'ryst.cc/b/'; | |
var $amount = '110000'; | |
//var $group = 'wf-'; | |
var $uuid = 'cccc'; | |
var $filename = 'goband2025'; |
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 | |
/** | |
* Verifies that all the required form fields are completed | |
* if any fail verification, set | |
* $object->error = true | |
* $object->message .= '<li>x item failed verification</li>' | |
* | |
* @param unknown $submitted_values array post data | |
* @return unknown_type |
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
include 'sg/SendGrid_loader.php'; | |
//Getting the elements from the form | |
// | |
$guestName = $_REQUEST['guestName'] ; | |
$accomodationPlans = $_REQUEST['accomodationPlans'] ; | |
$favoriteLoveSong = $_REQUEST['favoriteLoveSong'] ; | |
$bestContact = $_REQUEST['bestContact'] ; | |
$message = $_REQUEST['message'] ; | |
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 | |
$user = JFactory::getUser(); | |
$profile = JUserHelper::getProfile($user->id); | |
var_dump($profile); | |
//each plugin adds its own object loaded with an array so you can access your fields like this | |
echo $profile->profile['address1']; | |
?> |
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
JTable::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_categories/tables' ); | |
JModel::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_categories/models' ); | |
$model = JModel::getInstance('Categories','CategoriesModel'); | |
$model->setState('list.select','a.id, a.title, a.alias, a.note, a.published, a.params'); | |
$app = JFactory::getApplication(); | |
$app -> setUserState('com_categories.categories.filter.extension', 'com_yourapp.yoursection'); | |
$items = $model -> getItems(); |