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 | |
$api = new Emfl_Platform_API($api_key); | |
$data = array(); | |
$data['groupIDs'] = !empty($_POST['groups'])? $_POST['groups'] : ''; | |
$data['originalSource'] = trim( $_POST['source'] ); | |
$data['firstName'] = !empty( $_POST['first_name'] )? trim( $_POST['first_name'] ) : ''; | |
$data['lastName'] = !empty( $_POST['last_name'] )? trim( $_POST['last_name'] ) : ''; | |
$data['title'] = !empty( $_POST['title'] )? trim( $_POST['title'] ) : ''; |
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
function getAllPagedData(url){ | |
var data = []; | |
var page = 1; | |
return _getPage(page); | |
function _getPage(page){ | |
return $http.get(url, {params: {format: 'json', page: page}}) | |
.then(function(result){ | |
data = data.concat(result.results); | |
if( result.next ){ |
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 | |
/** | |
* Definitions | |
*/ | |
define('EMFLUENCE_PLATFORM_API_KEY', 'ff342fde-a672-9fbb-d5aa-0f87487f1682'); | |
define('EMFLUENCE_PLATFORM_ALL_USERS_LIST_ID', 0000); | |
define('EMFLUENCE_PLATFORM_SUBSCRIBERS_LIST_ID', 000000); |
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
// Define route for consuming the returning token, and attach our interceptor | |
app.config([ | |
'$routeProvider', | |
'$httpProvider', | |
'$controllerProvider', | |
'$compileProvider', | |
'$filterProvider', | |
'$locationProvider', | |
'$sceDelegateProvider', | |
'$provide', |
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 | |
/** | |
* This controller will run up to the alloted seconds fitting as many operations as possible | |
* @param int $seconds | |
* @return array | |
*/ | |
public function bulk_operation($seconds = NULL, $identifier) | |
{ | |
$execution_time_limit = $seconds != NULL? $seconds : ini_get('max_execution_time'); |
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
/** | |
* Provides data that can be used to ensure location.reload() behaves the same | |
* with regard to x and y position across browsers | |
* | |
* Introduced because IE goes scroll 0 using window.location.reload, but stays in place for F5. | |
* | |
* @param {boolean} [forcedReload] | |
* Causes the page to always be reloaded from the server if true | |
* | |
* @see restoreToSamePosition |
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
/* globals Redux, settings */ | |
jQuery(document).ready(function(){ | |
reduxSearch(settings); | |
}); | |
function reduxSearch(settings){ | |
/** | |
* Constants |
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
**/*.min.js | |
/libraries |
OlderNewer