private static PhpArray /*!*/ GetLevelStatus(BufferedOutput /*!*/ bo, int index) { PhpArray result = new PhpArray(0, 3); PhpCallback filter; int size; bo.GetLevelInfo(index, out filter, out size); if (filter != null) { result.Add("type", 1); result.Add("name", ((IPhpConvertible)filter).ToString()); } else { result.Add("type", 0); } result.Add("buffer_size", size); return(result); }
private static PhpArray /*!*/ GetLevelStatus(BufferedOutput /*!*/ bo, int index) { var result = new PhpArray(3); IPhpCallable filter; int size; string name; bo.GetLevelInfo(index, out filter, out size, out name); if (filter != null) { result.Add("type", 1); result.Add("name", name); } else { result.Add("type", 0); } result.Add("buffer_size", size); return(result); }