コード例 #1
0
ファイル: pradolite.php プロジェクト: tejdeeps/tejcs.com
 public function clear()
 {
     parent::clear();
     if ($this->_o instanceof INamingContainer) {
         $this->_o->clearNamingContainer();
     }
 }
コード例 #2
0
ファイル: TListTest.php プロジェクト: Nurudeen/prado
 public function testCanNotClearWhenReadOnly()
 {
     $list = new TList(array(1, 2, 3), true);
     try {
         $list->clear();
     } catch (TInvalidOperationException $e) {
         return;
     }
     self::fail('An expected TInvalidOperationException was not raised');
 }