コード例 #1
0
ファイル: NotBlank.php プロジェクト: xamin123/platform
 /**
  * Initialize condition options
  *
  * @param array $options
  * @return NotBlank
  */
 public function initialize(array $options)
 {
     $this->blankCondition->initialize($options);
     return $this;
 }
コード例 #2
0
ファイル: NotBlank.php プロジェクト: ephigenia/ephframe
 public function validate($value)
 {
     return !parent::validate($value);
 }
コード例 #3
0
 function test_simple_components()
 {
     $comp = new Blank(3);
     $this->assertIdentical($comp->getType(), BLANK);
     $comp = new Block("hoho", 3);
     $this->assertIdentical($comp->getType(), BLOCK);
     $comp = new Heading("hoho", 3);
     $this->assertIdentical($comp->getType(), HEADING);
     $comp = new Footer("hoho", 3);
     $this->assertIdentical($comp->getType(), FOOTER);
 }
コード例 #4
0
ファイル: Csrf.php プロジェクト: Umz/ImpressPages
 /**
  * Constructor
  *
  * @param array $options
  */
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->addValidator('Csrf');
 }
コード例 #5
0
ファイル: Povod.php プロジェクト: kd-brinex/paruram
 /**
  * @return \yii\db\ActiveQuery
  */
 public function getBlanks()
 {
     return $this->hasMany(Blank::className(), ['povod_id' => 'id']);
 }
コード例 #6
0
ファイル: BlankTest.php プロジェクト: delboy1978uk/blank
 /**
  * Check tests are working
  */
 public function testBlah()
 {
     $this->assertEquals('Ready to start building tests', $this->blank->blah());
 }
コード例 #7
0
ファイル: NotBlank.php プロジェクト: ramunasd/platform
 /**
  * {@inheritdoc}
  */
 protected function isConditionAllowed($context)
 {
     return !parent::isConditionAllowed($context);
 }