Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** -----------------------------------------
- * Blinds
- -------------------------------------------*/
- $blindArray = array();
- /**
- * Loop through the dynamic fields added
- * by the user.
- */
- foreach($data['BlindWidth'] as $key => $value) {
- $blindArray[$key]['Width'] = $value;
- }
- foreach($data['BlindHeight'] as $key => $value) {
- $blindArray[$key]['Height'] = $value;
- }
- /**
- * Loop through the Blinds Array and add
- * each of the items to an ArrayList() to
- * be looped through in the template.
- */
- $arrayList = new ArrayList();
- foreach($blindArray as $key => $item){
- $arrayList->push(new ArrayData(array(
- 'Width' => $item['Width'],
- 'Height' => $item['Height']
- )));
- }
- /**
- * Set the blinds data for the Email template.
- */
- $data['Blinds'] = $arrayList;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement