@@ 135-142 (lines=8) @@ | ||
132 | $condition->set_comparers( $ioc['container_condition_comparer_collections']['array'] ); |
|
133 | return $condition; |
|
134 | } ); |
|
135 | $cc_ioc['user_capabiltiy'] = $cc_ioc->factory( function() use ( $ioc ) { |
|
136 | $condition = new \Carbon_Fields\Container\Condition\User_Capability_Condition(); |
|
137 | $condition->set_comparers( array( |
|
138 | // Only support the custom comparer as this condition has it's own comparison methods |
|
139 | $ioc['container_condition_comparers']['custom'], |
|
140 | ) ); |
|
141 | return $condition; |
|
142 | } ); |
|
143 | ||
144 | $cc_ioc['blog_id'] = $cc_ioc->factory( function() use ( $ioc ) { |
|
145 | $condition = new \Carbon_Fields\Container\Condition\Blog_ID_Condition(); |
|
@@ 160-167 (lines=8) @@ | ||
157 | $condition->set_comparers( $ioc['container_condition_comparer_collections']['array'] ); |
|
158 | return $condition; |
|
159 | } ); |
|
160 | $cc_ioc['current_user_capability'] = $cc_ioc->factory( function() use ( $ioc ) { |
|
161 | $condition = new \Carbon_Fields\Container\Condition\Current_User_Capability_Condition(); |
|
162 | $condition->set_comparers( array( |
|
163 | // Only support the custom comparer as this condition has it's own comparison methods |
|
164 | $ioc['container_condition_comparers']['custom'], |
|
165 | ) ); |
|
166 | return $condition; |
|
167 | } ); |
|
168 | } |
|
169 | ||
170 | /** |