initial commit

This commit is contained in:
Chris Sewell
2012-11-28 03:55:08 -05:00
parent 7adb399b2e
commit cf140a2e97
3247 changed files with 492437 additions and 0 deletions

View File

@ -0,0 +1,25 @@
<?php
/**
* Defines components for the map actions, namely the ability to easily print a technician
* map.
*
* @author Ciphent
**/
class mapsComponents extends sfComponents
{
/**
* Displays the google map for all technicians. You can only have one instance of this component on a page.
*
* Call it as so: include_component('maps', 'displayTechnicianMap', array('markers' => array(elements of type GMapMarer))
*
**/
public function executeDisplayTechnicianMap()
{
$map = new GoogleMap('map');
$map->includeDefaultLocation()->setWidth($this->mapwidth)->addMarkers($this->markers);
$map->setHeight($this->mapheight);
$this->map = $map;
}
}