예제 #1
0
 /**
  * Returns an array with all the contexts (the names, not the ids)
  * 
  * @return     array
  */
 public function getContextsArray()
 {
     $contexts = explode(',', $this->getContexts());
     // the variable contains ids
     $contexts = PcUsersContextsPeer::retrieveByPks($contexts);
     $ret = array();
     foreach ($contexts as $context) {
         $ret[] = $context->getContext();
     }
     return $ret;
 }