[ create a new paste ] login | about

Link: http://codepad.org/1V6ChkY0    [ raw code | output | fork ]

PHP, pasted on Jun 19:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
class X{
  public $ceff_instance = array();
  protected $filedMethodMappings = NULL;

  public function __construct() {
    $this->ceff_instance = $this->wsMethod_GO();
    $this->filedMethodMappings = $this->ceff_instance;
  }

  protected function wsMethod_GO(){
    return array(1,2,3);
  }
}

$x = new X;
print_r($x->ceff_instance);


Output:
1
2
3
4
5
6
Array
(
    [0] => 1
    [1] => 2
    [2] => 3
)


Create a new paste based on this one


Comments: