This file contains hidden or 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
| if (input.is('textarea.rich')) { | |
| $(input).tinymce({ | |
| theme_advanced_toolbar_location : "top", | |
| theme_advanced_toolbar_align : "left", | |
| theme_advanced_resizing : true, | |
| theme : "advanced", | |
| script_url : 'js/tinymce/jscripts/tiny_mce/tiny_mce.js', | |
| setup : function(editor){ | |
| editor.onEvent.add(function(editor) { | |
| var hidden = translation(input); |
This file contains hidden or 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
| SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
| CREATE TABLE IF NOT EXISTS `exam_classes` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `name` varchar(255) NOT NULL, | |
| `school_id` int(11) NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; | |
This file contains hidden or 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 Ordek() {} | |
| Ordek.prototype = { | |
| vak : function() | |
| { | |
| alert('vak vak'); | |
| }, | |
| yuz : function() | |
| { | |
| alert('yüz..'); | |
| } |
This file contains hidden or 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
| if (data.join) | |
| alert('Join yapabildiğine göre bu bir array olabilir.'); |
This file contains hidden or 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 Math { | |
| /** | |
| * Toplama işlemi | |
| * | |
| * @param $a | |
| * @param $b | |
| * @return int Sonuç | |
| */ |
This file contains hidden or 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 | |
| require_once 'Math.php'; | |
| class MathTest extends PHPUnit_Framework_TestCase { | |
| /** | |
| * @var Math | |
| */ | |
| protected $object; |
This file contains hidden or 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 | |
| require_once 'Math.php'; | |
| class MathTest extends PHPUnit_Framework_TestCase { | |
| /** | |
| * @var Math | |
| */ | |
| protected $object; |
This file contains hidden or 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 Math { | |
| /** | |
| * Toplama işlemi | |
| * | |
| * @param $a | |
| * @param $b | |
| * @return int Sonuç | |
| */ |
This file contains hidden or 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->assertEquals(26, $this->object->add(5,3,2,1,5,10), '5+3+2+1+5+10=26 olmalı'); | |
| //... | |
| ?> |
This file contains hidden or 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 | |
| //... | |
| public function add(/* sınırsız değer alabilir... */) | |
| { | |
| //fonksiyona gelen parametrelerin tümünü array olarak alalım. | |
| $values = func_get_args(); | |
| //gelen arrayın değerlerini toplayarak geri dönelim | |
| return array_sum($values); | |
| } | |
| //... |