예제 #1
0
 protected function loadTypes()
 {
     return array_merge(parent::loadTypes(), array(new FileType($this->handlerManager, $this->factory)));
 }
 protected function loadTypes()
 {
     return array_merge(parent::loadTypes(), array(new Form\Core\Type\TinymceType(array()), new Form\JQuery\Type\DateType(array()), new Form\JQuery\Type\SliderType(), new Form\Core\Type\CaptchaType(new Captcha(new Session(new ArraySessionStorage()), 's$cr$t'), array('script' => 'genemu_upload', 'uploader' => '/js/uploadify.swf', 'cancelImg' => '/images/cancel.png', 'folder' => '/upload', 'width' => 100, 'height' => 30, 'length' => 4, 'position' => 'left', 'format' => 'png', 'chars' => range(0, 9), 'font_size' => 18, 'font_color' => array('252525', '8B8787', '550707', '3526E6', '88531E'), 'fonts' => array(__DIR__ . '/../../Fixtures/fonts/akbar.ttf', __DIR__ . '/../../Fixtures/fonts/brushcut.ttf', __DIR__ . '/../../Fixtures/fonts/molten.ttf', __DIR__ . '/../../Fixtures/fonts/planetbe.ttf', __DIR__ . '/../../Fixtures/fonts/whoobub.ttf'), 'background_color' => 'DDDDDD', 'border_color' => '000000')), new Form\JQuery\Type\FileType(array('script' => 'genemu_upload', 'uploader' => '/swf/uploadify.swf', 'cancel_img' => '/images/cancel.png', 'folder' => '/upload'), __DIR__ . '/../../Fixtures'), new Form\Core\Type\ReCaptchaType(new ReCaptchaValidator($this->request, 'privateKey'), 'publicKey', 'http://api.recaptcha.net', array()), new Form\JQuery\Type\AutocompleterType(), new Form\JQuery\Type\ImageType('medium', array('small' => array(100, 100), 'medium' => array(200, 200), 'large' => array(500, 500), 'extra' => array(1024, 768)), array('rotate', 'bw', 'negative', 'sepia', 'crop'))));
 }
예제 #3
0
 /**
  * (non-PHPdoc)
  * @see Symfony\Component\Form\Extension\Core.CoreExtension::loadTypes()
  */
 protected function loadTypes()
 {
     return array_merge(parent::loadTypes(), $this->types);
 }