| Total Complexity | 52 |
| Total Lines | 815 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
Complex classes like CWiki often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use CWiki, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 26 | class CWiki |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var int |
||
| 30 | * |
||
| 31 | * @ORM\Column(name="iid", type="integer") |
||
| 32 | * @ORM\Id |
||
| 33 | * @ORM\GeneratedValue |
||
| 34 | */ |
||
| 35 | protected $iid; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var int |
||
| 39 | * |
||
| 40 | * @ORM\Column(name="c_id", type="integer") |
||
| 41 | */ |
||
| 42 | protected $cId; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var int |
||
| 46 | * |
||
| 47 | * @ORM\Column(name="page_id", type="integer", nullable=true) |
||
| 48 | */ |
||
| 49 | protected $pageId; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @var string |
||
| 53 | * |
||
| 54 | * @ORM\Column(name="reflink", type="string", length=255, nullable=false) |
||
| 55 | */ |
||
| 56 | protected $reflink; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @var string |
||
| 60 | * @Assert\NotBlank() |
||
| 61 | * @ORM\Column(name="title", type="string", length=255, nullable=false) |
||
| 62 | */ |
||
| 63 | protected $title; |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @var string |
||
| 67 | * |
||
| 68 | * @ORM\Column(name="content", type="text", nullable=false) |
||
| 69 | */ |
||
| 70 | protected $content; |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @var int |
||
| 74 | * |
||
| 75 | * @ORM\Column(name="user_id", type="integer", nullable=false) |
||
| 76 | */ |
||
| 77 | protected $userId; |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @var int |
||
| 81 | * |
||
| 82 | * @ORM\Column(name="group_id", type="integer", nullable=true) |
||
| 83 | */ |
||
| 84 | protected $groupId; |
||
| 85 | |||
| 86 | /** |
||
| 87 | * @var \DateTime |
||
| 88 | * |
||
| 89 | * @ORM\Column(name="dtime", type="datetime", nullable=true) |
||
| 90 | */ |
||
| 91 | protected $dtime; |
||
| 92 | |||
| 93 | /** |
||
| 94 | * @var int |
||
| 95 | * |
||
| 96 | * @ORM\Column(name="addlock", type="integer", nullable=false) |
||
| 97 | */ |
||
| 98 | protected $addlock; |
||
| 99 | |||
| 100 | /** |
||
| 101 | * @var int |
||
| 102 | * |
||
| 103 | * @ORM\Column(name="editlock", type="integer", nullable=false) |
||
| 104 | */ |
||
| 105 | protected $editlock; |
||
| 106 | |||
| 107 | /** |
||
| 108 | * @var int |
||
| 109 | * |
||
| 110 | * @ORM\Column(name="visibility", type="integer", nullable=false) |
||
| 111 | */ |
||
| 112 | protected $visibility; |
||
| 113 | |||
| 114 | /** |
||
| 115 | * @var int |
||
| 116 | * |
||
| 117 | * @ORM\Column(name="addlock_disc", type="integer", nullable=false) |
||
| 118 | */ |
||
| 119 | protected $addlockDisc; |
||
| 120 | |||
| 121 | /** |
||
| 122 | * @var int |
||
| 123 | * |
||
| 124 | * @ORM\Column(name="visibility_disc", type="integer", nullable=false) |
||
| 125 | */ |
||
| 126 | protected $visibilityDisc; |
||
| 127 | |||
| 128 | /** |
||
| 129 | * @var int |
||
| 130 | * |
||
| 131 | * @ORM\Column(name="ratinglock_disc", type="integer", nullable=false) |
||
| 132 | */ |
||
| 133 | protected $ratinglockDisc; |
||
| 134 | |||
| 135 | /** |
||
| 136 | * @var int |
||
| 137 | * |
||
| 138 | * @ORM\Column(name="assignment", type="integer", nullable=false) |
||
| 139 | */ |
||
| 140 | protected $assignment; |
||
| 141 | |||
| 142 | /** |
||
| 143 | * @var string |
||
| 144 | * |
||
| 145 | * @ORM\Column(name="comment", type="text", nullable=false) |
||
| 146 | */ |
||
| 147 | protected $comment; |
||
| 148 | |||
| 149 | /** |
||
| 150 | * @var string |
||
| 151 | * |
||
| 152 | * @ORM\Column(name="progress", type="text", nullable=false) |
||
| 153 | */ |
||
| 154 | protected $progress; |
||
| 155 | |||
| 156 | /** |
||
| 157 | * @var int |
||
| 158 | * |
||
| 159 | * @ORM\Column(name="score", type="integer", nullable=true) |
||
| 160 | */ |
||
| 161 | protected $score; |
||
| 162 | |||
| 163 | /** |
||
| 164 | * @var int |
||
| 165 | * |
||
| 166 | * @ORM\Column(name="version", type="integer", nullable=true) |
||
| 167 | */ |
||
| 168 | protected $version; |
||
| 169 | |||
| 170 | /** |
||
| 171 | * @var int |
||
| 172 | * |
||
| 173 | * @ORM\Column(name="is_editing", type="integer", nullable=false) |
||
| 174 | */ |
||
| 175 | protected $isEditing; |
||
| 176 | |||
| 177 | /** |
||
| 178 | * @var \DateTime |
||
| 179 | * |
||
| 180 | * @ORM\Column(name="time_edit", type="datetime", nullable=true) |
||
| 181 | */ |
||
| 182 | protected $timeEdit; |
||
| 183 | |||
| 184 | /** |
||
| 185 | * @var int |
||
| 186 | * |
||
| 187 | * @ORM\Column(name="hits", type="integer", nullable=true) |
||
| 188 | */ |
||
| 189 | protected $hits; |
||
| 190 | |||
| 191 | /** |
||
| 192 | * @var string |
||
| 193 | * |
||
| 194 | * @ORM\Column(name="linksto", type="text", nullable=false) |
||
| 195 | */ |
||
| 196 | protected $linksto; |
||
| 197 | |||
| 198 | /** |
||
| 199 | * @var string |
||
| 200 | * |
||
| 201 | * @ORM\Column(name="tag", type="text", nullable=false) |
||
| 202 | */ |
||
| 203 | protected $tag; |
||
| 204 | |||
| 205 | /** |
||
| 206 | * @var string |
||
| 207 | * |
||
| 208 | * @ORM\Column(name="user_ip", type="string", length=39, nullable=false) |
||
| 209 | */ |
||
| 210 | protected $userIp; |
||
| 211 | |||
| 212 | /** |
||
| 213 | * @var int |
||
| 214 | * |
||
| 215 | * @ORM\Column(name="session_id", type="integer", nullable=true) |
||
| 216 | */ |
||
| 217 | protected $sessionId; |
||
| 218 | |||
| 219 | /** |
||
| 220 | * Set pageId. |
||
| 221 | * |
||
| 222 | * @param int $pageId |
||
| 223 | * |
||
| 224 | * @return CWiki |
||
| 225 | */ |
||
| 226 | public function setPageId($pageId) |
||
| 227 | { |
||
| 228 | $this->pageId = $pageId; |
||
| 229 | |||
| 230 | return $this; |
||
| 231 | } |
||
| 232 | |||
| 233 | /** |
||
| 234 | * Get pageId. |
||
| 235 | * |
||
| 236 | * @return int |
||
| 237 | */ |
||
| 238 | public function getPageId() |
||
| 239 | { |
||
| 240 | return $this->pageId; |
||
| 241 | } |
||
| 242 | |||
| 243 | /** |
||
| 244 | * Set reflink. |
||
| 245 | * |
||
| 246 | * @param string $reflink |
||
| 247 | * |
||
| 248 | * @return CWiki |
||
| 249 | */ |
||
| 250 | public function setReflink($reflink) |
||
| 251 | { |
||
| 252 | $this->reflink = $reflink; |
||
| 253 | |||
| 254 | return $this; |
||
| 255 | } |
||
| 256 | |||
| 257 | /** |
||
| 258 | * Get reflink. |
||
| 259 | * |
||
| 260 | * @return string |
||
| 261 | */ |
||
| 262 | public function getReflink() |
||
| 263 | { |
||
| 264 | return $this->reflink; |
||
| 265 | } |
||
| 266 | |||
| 267 | /** |
||
| 268 | * Set title. |
||
| 269 | * |
||
| 270 | * @param string $title |
||
| 271 | * |
||
| 272 | * @return CWiki |
||
| 273 | */ |
||
| 274 | public function setTitle($title) |
||
| 275 | { |
||
| 276 | $this->title = $title; |
||
| 277 | |||
| 278 | return $this; |
||
| 279 | } |
||
| 280 | |||
| 281 | /** |
||
| 282 | * Get title. |
||
| 283 | * |
||
| 284 | * @return string |
||
| 285 | */ |
||
| 286 | public function getTitle() |
||
| 287 | { |
||
| 288 | return $this->title; |
||
| 289 | } |
||
| 290 | |||
| 291 | /** |
||
| 292 | * Set content. |
||
| 293 | * |
||
| 294 | * @param string $content |
||
| 295 | * |
||
| 296 | * @return CWiki |
||
| 297 | */ |
||
| 298 | public function setContent($content) |
||
| 299 | { |
||
| 300 | $this->content = $content; |
||
| 301 | |||
| 302 | return $this; |
||
| 303 | } |
||
| 304 | |||
| 305 | /** |
||
| 306 | * Get content. |
||
| 307 | * |
||
| 308 | * @return string |
||
| 309 | */ |
||
| 310 | public function getContent() |
||
| 313 | } |
||
| 314 | |||
| 315 | /** |
||
| 316 | * Set userId. |
||
| 317 | * |
||
| 318 | * @param int $userId |
||
| 319 | * |
||
| 320 | * @return CWiki |
||
| 321 | */ |
||
| 322 | public function setUserId($userId) |
||
| 323 | { |
||
| 324 | $this->userId = $userId; |
||
| 325 | |||
| 326 | return $this; |
||
| 327 | } |
||
| 328 | |||
| 329 | /** |
||
| 330 | * Get userId. |
||
| 331 | * |
||
| 332 | * @return int |
||
| 333 | */ |
||
| 334 | public function getUserId() |
||
| 335 | { |
||
| 336 | return $this->userId; |
||
| 337 | } |
||
| 338 | |||
| 339 | /** |
||
| 340 | * Set groupId. |
||
| 341 | * |
||
| 342 | * @param int $groupId |
||
| 343 | * |
||
| 344 | * @return CWiki |
||
| 345 | */ |
||
| 346 | public function setGroupId($groupId) |
||
| 347 | { |
||
| 348 | $this->groupId = $groupId; |
||
| 349 | |||
| 350 | return $this; |
||
| 351 | } |
||
| 352 | |||
| 353 | /** |
||
| 354 | * Get groupId. |
||
| 355 | * |
||
| 356 | * @return int |
||
| 357 | */ |
||
| 358 | public function getGroupId() |
||
| 359 | { |
||
| 360 | return $this->groupId; |
||
| 361 | } |
||
| 362 | |||
| 363 | /** |
||
| 364 | * Set dtime. |
||
| 365 | * |
||
| 366 | * @param \DateTime $dtime |
||
| 367 | * |
||
| 368 | * @return CWiki |
||
| 369 | */ |
||
| 370 | public function setDtime($dtime) |
||
| 371 | { |
||
| 372 | $this->dtime = $dtime; |
||
| 373 | |||
| 374 | return $this; |
||
| 375 | } |
||
| 376 | |||
| 377 | /** |
||
| 378 | * Get dtime. |
||
| 379 | * |
||
| 380 | * @return \DateTime |
||
| 381 | */ |
||
| 382 | public function getDtime() |
||
| 383 | { |
||
| 384 | return $this->dtime; |
||
| 385 | } |
||
| 386 | |||
| 387 | /** |
||
| 388 | * Set addlock. |
||
| 389 | * |
||
| 390 | * @param int $addlock |
||
| 391 | * |
||
| 392 | * @return CWiki |
||
| 393 | */ |
||
| 394 | public function setAddlock($addlock) |
||
| 395 | { |
||
| 396 | $this->addlock = $addlock; |
||
| 397 | |||
| 398 | return $this; |
||
| 399 | } |
||
| 400 | |||
| 401 | /** |
||
| 402 | * Get addlock. |
||
| 403 | * |
||
| 404 | * @return int |
||
| 405 | */ |
||
| 406 | public function getAddlock() |
||
| 407 | { |
||
| 408 | return $this->addlock; |
||
| 409 | } |
||
| 410 | |||
| 411 | /** |
||
| 412 | * Set editlock. |
||
| 413 | * |
||
| 414 | * @param int $editlock |
||
| 415 | * |
||
| 416 | * @return CWiki |
||
| 417 | */ |
||
| 418 | public function setEditlock($editlock) |
||
| 419 | { |
||
| 420 | $this->editlock = $editlock; |
||
| 421 | |||
| 422 | return $this; |
||
| 423 | } |
||
| 424 | |||
| 425 | /** |
||
| 426 | * Get editlock. |
||
| 427 | * |
||
| 428 | * @return int |
||
| 429 | */ |
||
| 430 | public function getEditlock() |
||
| 431 | { |
||
| 432 | return $this->editlock; |
||
| 433 | } |
||
| 434 | |||
| 435 | /** |
||
| 436 | * Set visibility. |
||
| 437 | * |
||
| 438 | * @param int $visibility |
||
| 439 | * |
||
| 440 | * @return CWiki |
||
| 441 | */ |
||
| 442 | public function setVisibility($visibility) |
||
| 443 | { |
||
| 444 | $this->visibility = $visibility; |
||
| 445 | |||
| 446 | return $this; |
||
| 447 | } |
||
| 448 | |||
| 449 | /** |
||
| 450 | * Get visibility. |
||
| 451 | * |
||
| 452 | * @return int |
||
| 453 | */ |
||
| 454 | public function getVisibility() |
||
| 455 | { |
||
| 456 | return $this->visibility; |
||
| 457 | } |
||
| 458 | |||
| 459 | /** |
||
| 460 | * Set addlockDisc. |
||
| 461 | * |
||
| 462 | * @param int $addlockDisc |
||
| 463 | * |
||
| 464 | * @return CWiki |
||
| 465 | */ |
||
| 466 | public function setAddlockDisc($addlockDisc) |
||
| 467 | { |
||
| 468 | $this->addlockDisc = $addlockDisc; |
||
| 469 | |||
| 470 | return $this; |
||
| 471 | } |
||
| 472 | |||
| 473 | /** |
||
| 474 | * Get addlockDisc. |
||
| 475 | * |
||
| 476 | * @return int |
||
| 477 | */ |
||
| 478 | public function getAddlockDisc() |
||
| 479 | { |
||
| 480 | return $this->addlockDisc; |
||
| 481 | } |
||
| 482 | |||
| 483 | /** |
||
| 484 | * Set visibilityDisc. |
||
| 485 | * |
||
| 486 | * @param int $visibilityDisc |
||
| 487 | * |
||
| 488 | * @return CWiki |
||
| 489 | */ |
||
| 490 | public function setVisibilityDisc($visibilityDisc) |
||
| 491 | { |
||
| 492 | $this->visibilityDisc = $visibilityDisc; |
||
| 493 | |||
| 494 | return $this; |
||
| 495 | } |
||
| 496 | |||
| 497 | /** |
||
| 498 | * Get visibilityDisc. |
||
| 499 | * |
||
| 500 | * @return int |
||
| 501 | */ |
||
| 502 | public function getVisibilityDisc() |
||
| 503 | { |
||
| 504 | return $this->visibilityDisc; |
||
| 505 | } |
||
| 506 | |||
| 507 | /** |
||
| 508 | * Set ratinglockDisc. |
||
| 509 | * |
||
| 510 | * @param int $ratinglockDisc |
||
| 511 | * |
||
| 512 | * @return CWiki |
||
| 513 | */ |
||
| 514 | public function setRatinglockDisc($ratinglockDisc) |
||
| 515 | { |
||
| 516 | $this->ratinglockDisc = $ratinglockDisc; |
||
| 517 | |||
| 518 | return $this; |
||
| 519 | } |
||
| 520 | |||
| 521 | /** |
||
| 522 | * Get ratinglockDisc. |
||
| 523 | * |
||
| 524 | * @return int |
||
| 525 | */ |
||
| 526 | public function getRatinglockDisc() |
||
| 527 | { |
||
| 528 | return $this->ratinglockDisc; |
||
| 529 | } |
||
| 530 | |||
| 531 | /** |
||
| 532 | * Set assignment. |
||
| 533 | * |
||
| 534 | * @param int $assignment |
||
| 535 | * |
||
| 536 | * @return CWiki |
||
| 537 | */ |
||
| 538 | public function setAssignment($assignment) |
||
| 539 | { |
||
| 540 | $this->assignment = $assignment; |
||
| 541 | |||
| 542 | return $this; |
||
| 543 | } |
||
| 544 | |||
| 545 | /** |
||
| 546 | * Get assignment. |
||
| 547 | * |
||
| 548 | * @return int |
||
| 549 | */ |
||
| 550 | public function getAssignment() |
||
| 553 | } |
||
| 554 | |||
| 555 | /** |
||
| 556 | * Set comment. |
||
| 557 | * |
||
| 558 | * @param string $comment |
||
| 559 | * |
||
| 560 | * @return CWiki |
||
| 561 | */ |
||
| 562 | public function setComment($comment) |
||
| 563 | { |
||
| 564 | $this->comment = $comment; |
||
| 565 | |||
| 566 | return $this; |
||
| 567 | } |
||
| 568 | |||
| 569 | /** |
||
| 570 | * Get comment. |
||
| 571 | * |
||
| 572 | * @return string |
||
| 573 | */ |
||
| 574 | public function getComment() |
||
| 575 | { |
||
| 576 | return $this->comment; |
||
| 577 | } |
||
| 578 | |||
| 579 | /** |
||
| 580 | * Set progress. |
||
| 581 | * |
||
| 582 | * @param string $progress |
||
| 583 | * |
||
| 584 | * @return CWiki |
||
| 585 | */ |
||
| 586 | public function setProgress($progress) |
||
| 587 | { |
||
| 588 | $this->progress = $progress; |
||
| 589 | |||
| 590 | return $this; |
||
| 591 | } |
||
| 592 | |||
| 593 | /** |
||
| 594 | * Get progress. |
||
| 595 | * |
||
| 596 | * @return string |
||
| 597 | */ |
||
| 598 | public function getProgress() |
||
| 599 | { |
||
| 600 | return $this->progress; |
||
| 601 | } |
||
| 602 | |||
| 603 | /** |
||
| 604 | * Set score. |
||
| 605 | * |
||
| 606 | * @param int $score |
||
| 607 | * |
||
| 608 | * @return CWiki |
||
| 609 | */ |
||
| 610 | public function setScore($score) |
||
| 611 | { |
||
| 612 | $this->score = $score; |
||
| 613 | |||
| 614 | return $this; |
||
| 615 | } |
||
| 616 | |||
| 617 | /** |
||
| 618 | * Get score. |
||
| 619 | * |
||
| 620 | * @return int |
||
| 621 | */ |
||
| 622 | public function getScore() |
||
| 623 | { |
||
| 624 | return $this->score; |
||
| 625 | } |
||
| 626 | |||
| 627 | /** |
||
| 628 | * Set version. |
||
| 629 | * |
||
| 630 | * @param int $version |
||
| 631 | * |
||
| 632 | * @return CWiki |
||
| 633 | */ |
||
| 634 | public function setVersion($version) |
||
| 635 | { |
||
| 636 | $this->version = $version; |
||
| 637 | |||
| 638 | return $this; |
||
| 639 | } |
||
| 640 | |||
| 641 | /** |
||
| 642 | * Get version. |
||
| 643 | * |
||
| 644 | * @return int |
||
| 645 | */ |
||
| 646 | public function getVersion() |
||
| 647 | { |
||
| 648 | return $this->version; |
||
| 649 | } |
||
| 650 | |||
| 651 | /** |
||
| 652 | * Set isEditing. |
||
| 653 | * |
||
| 654 | * @param int $isEditing |
||
| 655 | * |
||
| 656 | * @return CWiki |
||
| 657 | */ |
||
| 658 | public function setIsEditing($isEditing) |
||
| 659 | { |
||
| 660 | $this->isEditing = $isEditing; |
||
| 661 | |||
| 662 | return $this; |
||
| 663 | } |
||
| 664 | |||
| 665 | /** |
||
| 666 | * Get isEditing. |
||
| 667 | * |
||
| 668 | * @return int |
||
| 669 | */ |
||
| 670 | public function getIsEditing() |
||
| 671 | { |
||
| 672 | return $this->isEditing; |
||
| 673 | } |
||
| 674 | |||
| 675 | /** |
||
| 676 | * Set timeEdit. |
||
| 677 | * |
||
| 678 | * @param \DateTime $timeEdit |
||
| 679 | * |
||
| 680 | * @return CWiki |
||
| 681 | */ |
||
| 682 | public function setTimeEdit($timeEdit) |
||
| 687 | } |
||
| 688 | |||
| 689 | /** |
||
| 690 | * Get timeEdit. |
||
| 691 | * |
||
| 692 | * @return \DateTime |
||
| 693 | */ |
||
| 694 | public function getTimeEdit() |
||
| 695 | { |
||
| 696 | return $this->timeEdit; |
||
| 697 | } |
||
| 698 | |||
| 699 | /** |
||
| 700 | * Set hits. |
||
| 701 | * |
||
| 702 | * @param int $hits |
||
| 703 | * |
||
| 704 | * @return CWiki |
||
| 705 | */ |
||
| 706 | public function setHits($hits) |
||
| 707 | { |
||
| 708 | $this->hits = $hits; |
||
| 709 | |||
| 710 | return $this; |
||
| 711 | } |
||
| 712 | |||
| 713 | /** |
||
| 714 | * Get hits. |
||
| 715 | * |
||
| 716 | * @return int |
||
| 717 | */ |
||
| 718 | public function getHits() |
||
| 719 | { |
||
| 720 | return $this->hits; |
||
| 721 | } |
||
| 722 | |||
| 723 | /** |
||
| 724 | * Set linksto. |
||
| 725 | * |
||
| 726 | * @param string $linksto |
||
| 727 | * |
||
| 728 | * @return CWiki |
||
| 729 | */ |
||
| 730 | public function setLinksto($linksto) |
||
| 731 | { |
||
| 732 | $this->linksto = $linksto; |
||
| 733 | |||
| 734 | return $this; |
||
| 735 | } |
||
| 736 | |||
| 737 | /** |
||
| 738 | * Get linksto. |
||
| 739 | * |
||
| 740 | * @return string |
||
| 741 | */ |
||
| 742 | public function getLinksto() |
||
| 743 | { |
||
| 744 | return $this->linksto; |
||
| 745 | } |
||
| 746 | |||
| 747 | /** |
||
| 748 | * Set tag. |
||
| 749 | * |
||
| 750 | * @param string $tag |
||
| 751 | * |
||
| 752 | * @return CWiki |
||
| 753 | */ |
||
| 754 | public function setTag($tag) |
||
| 759 | } |
||
| 760 | |||
| 761 | /** |
||
| 762 | * Get tag. |
||
| 763 | * |
||
| 764 | * @return string |
||
| 765 | */ |
||
| 766 | public function getTag() |
||
| 767 | { |
||
| 768 | return $this->tag; |
||
| 769 | } |
||
| 770 | |||
| 771 | /** |
||
| 772 | * Set userIp. |
||
| 773 | * |
||
| 774 | * @param string $userIp |
||
| 775 | * |
||
| 776 | * @return CWiki |
||
| 777 | */ |
||
| 778 | public function setUserIp($userIp) |
||
| 779 | { |
||
| 780 | $this->userIp = $userIp; |
||
| 781 | |||
| 782 | return $this; |
||
| 783 | } |
||
| 784 | |||
| 785 | /** |
||
| 786 | * Get userIp. |
||
| 787 | * |
||
| 788 | * @return string |
||
| 789 | */ |
||
| 790 | public function getUserIp() |
||
| 793 | } |
||
| 794 | |||
| 795 | /** |
||
| 796 | * Set sessionId. |
||
| 797 | * |
||
| 798 | * @param int $sessionId |
||
| 799 | * |
||
| 800 | * @return CWiki |
||
| 801 | */ |
||
| 802 | public function setSessionId($sessionId) |
||
| 807 | } |
||
| 808 | |||
| 809 | /** |
||
| 810 | * Get sessionId. |
||
| 811 | * |
||
| 812 | * @return int |
||
| 813 | */ |
||
| 814 | public function getSessionId() |
||
| 815 | { |
||
| 817 | } |
||
| 818 | |||
| 819 | /** |
||
| 820 | * Set cId. |
||
| 821 | * |
||
| 822 | * @param int $cId |
||
| 823 | * |
||
| 824 | * @return CWiki |
||
| 825 | */ |
||
| 826 | public function setCId($cId) |
||
| 827 | { |
||
| 828 | $this->cId = $cId; |
||
| 829 | |||
| 830 | return $this; |
||
| 831 | } |
||
| 832 | |||
| 833 | /** |
||
| 834 | * Get cId. |
||
| 835 | * |
||
| 836 | * @return int |
||
| 837 | */ |
||
| 838 | public function getCId() |
||
| 841 | } |
||
| 842 | } |
||
| 843 |